sumom****@users*****
sumom****@users*****
2013年 12月 20日 (金) 18:23:07 JST
Index: julius4/libjulius/src/default.c diff -u julius4/libjulius/src/default.c:1.21 julius4/libjulius/src/default.c:1.22 --- julius4/libjulius/src/default.c:1.21 Wed Dec 18 12:55:20 2013 +++ julius4/libjulius/src/default.c Fri Dec 20 18:23:07 2013 @@ -17,7 +17,7 @@ * @author Akinobu Lee * @date Fri Feb 16 15:05:43 2007 * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * */ /* @@ -103,9 +103,6 @@ j->optsection = JCONF_OPT_DEFAULT; j->optsectioning = TRUE; - if (j->outprob_outfile != NULL) { - free(j->outprob_outfile); - } j->outprob_outfile = NULL; } Index: julius4/libjulius/src/instance.c diff -u julius4/libjulius/src/instance.c:1.11 julius4/libjulius/src/instance.c:1.12 --- julius4/libjulius/src/instance.c:1.11 Wed Dec 18 12:55:20 2013 +++ julius4/libjulius/src/instance.c Fri Dec 20 18:23:07 2013 @@ -12,7 +12,7 @@ * @author Akinobu Lee * @date Sun Oct 28 18:06:20 2007 * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * */ /* @@ -334,6 +334,7 @@ { JCONF_AM *new; new = (JCONF_AM *)mymalloc(sizeof(JCONF_AM)); + memset(new, 0, sizeof(JCONF_AM)); jconf_set_default_values_am(new); new->next = NULL; return new; @@ -438,6 +439,7 @@ { JCONF_LM *new; new = (JCONF_LM *)mymalloc(sizeof(JCONF_LM)); + memset(new, 0, sizeof(JCONF_LM)); jconf_set_default_values_lm(new); new->next = NULL; return new; @@ -555,6 +557,7 @@ { JCONF_SEARCH *new; new = (JCONF_SEARCH *)mymalloc(sizeof(JCONF_SEARCH)); + memset(new, 0, sizeof(JCONF_SEARCH)); jconf_set_default_values_search(new); new->next = NULL; return new; @@ -664,6 +667,7 @@ /* allocate memory */ jconf = (Jconf *)mymalloc(sizeof(Jconf)); + memset(jconf, 0, sizeof(Jconf)); /* set default values */ jconf_set_default_values(jconf);