speech-dispatcher-0.12.1-5.fc44

List of Findings

Error: UNICONTROL_WARNING (CWE-94): [#def1]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:121: warning: bidirectional control characters: ['\u202a']
#  119|   ‍	نیم‌اتصال	char	never

#  120|   ‌	نیم‌فاصله	char	never

#  121|-> ‪	چپ به راستِ توکار	char	never

#  122|   ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def2]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:122: warning: bidirectional control characters: ['\u202b']
#  120|   ‌	نیم‌فاصله	char	never

#  121|   ‪	چپ به راستِ توکار	char	never

#  122|-> ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def3]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:123: warning: bidirectional control characters: ['\u202d']
#  121|   ‪	چپ به راستِ توکار	char	never

#  122|   ‫	راست به چپِ توکار	char	never

#  123|-> ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never

#  125|   ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def4]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:124: warning: bidirectional control characters: ['\u202e']
#  122|   ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|-> ‮	 بازنویسیِ راست به چپ	char	never

#  125|   ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def5]
/usr/share/speech-dispatcher/locale/fa/symbols.dic:125: warning: bidirectional control characters: ['\u202c']
#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never

#  125|-> ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def6]
/usr/share/speech-dispatcher/locale/ff_Adlm/emojis.dic:133: warning: bidirectional control characters: ['\u202e']
#  131|   🇧🇹	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤵𞥅𞤼𞤢𞥄𞤲	none

#  132|   🇧🇻	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤅𞤵𞤪𞤭𞥅𞤪𞤫 𞤄𞤵𞥅𞤾𞤫𞥅	none

#  133|-> 🇧🇼	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 ‮𞤄𞤮𞤼𞤧𞤵𞤱𞤢𞥄𞤲𞤢	none

#  134|   🇧🇾	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤫𞤤𞤢𞤪𞤵𞥅𞤧	none

#  135|   🇧🇿	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤫𞤤𞤭𞥅𞥁	none


Error: UNICONTROL_WARNING (CWE-94): [#def7]
/usr/share/speech-dispatcher/locale/he/orca.dic:13: warning: bidirectional control characters: ['\u202b']
#   11|   ¤	סימן מטבע	all
#   12|   ¦	קו שבור	most
#   13|-> ª	‫a בכתב עילי	some
#   14|   ¬	לא לוגי	some
#   15|   ­	מקף רך	most

Error: UNICONTROL_WARNING (CWE-94): [#def8]
speech-dispatcher-0.12.1/locale/fa/symbols.dic:121: warning: bidirectional control characters: ['\u202a']
#  119|   ‍	نیم‌اتصال	char	never

#  120|   ‌	نیم‌فاصله	char	never

#  121|-> ‪	چپ به راستِ توکار	char	never

#  122|   ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def9]
speech-dispatcher-0.12.1/locale/fa/symbols.dic:122: warning: bidirectional control characters: ['\u202b']
#  120|   ‌	نیم‌فاصله	char	never

#  121|   ‪	چپ به راستِ توکار	char	never

#  122|-> ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def10]
speech-dispatcher-0.12.1/locale/fa/symbols.dic:123: warning: bidirectional control characters: ['\u202d']
#  121|   ‪	چپ به راستِ توکار	char	never

#  122|   ‫	راست به چپِ توکار	char	never

#  123|-> ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never

#  125|   ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def11]
speech-dispatcher-0.12.1/locale/fa/symbols.dic:124: warning: bidirectional control characters: ['\u202e']
#  122|   ‫	راست به چپِ توکار	char	never

#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|-> ‮	 بازنویسیِ راست به چپ	char	never

#  125|   ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def12]
speech-dispatcher-0.12.1/locale/fa/symbols.dic:125: warning: bidirectional control characters: ['\u202c']
#  123|   ‭	بازنویسیِ چپ به راست	char	never

#  124|   ‮	 بازنویسیِ راست به چپ	char	never

#  125|-> ‬	پایانِ جهت	char	never


Error: UNICONTROL_WARNING (CWE-94): [#def13]
speech-dispatcher-0.12.1/locale/ff_Adlm/emojis.dic:133: warning: bidirectional control characters: ['\u202e']
#  131|   🇧🇹	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤵𞥅𞤼𞤢𞥄𞤲	none

#  132|   🇧🇻	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤅𞤵𞤪𞤭𞥅𞤪𞤫 𞤄𞤵𞥅𞤾𞤫𞥅	none

#  133|-> 🇧🇼	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 ‮𞤄𞤮𞤼𞤧𞤵𞤱𞤢𞥄𞤲𞤢	none

#  134|   🇧🇾	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤫𞤤𞤢𞤪𞤵𞥅𞤧	none

#  135|   🇧🇿	𞤼𞤵𞤼𞤢𞤱𞤢𞤤 𞤄𞤫𞤤𞤭𞥅𞥁	none


Error: UNICONTROL_WARNING (CWE-94): [#def14]
speech-dispatcher-0.12.1/locale/he/orca.dic:13: warning: bidirectional control characters: ['\u202b']
#   11|   ¤	סימן מטבע	all
#   12|   ¦	קו שבור	most
#   13|-> ª	‫a בכתב עילי	some
#   14|   ¬	לא לוגי	some
#   15|   ­	מקף רך	most

Error: CPPCHECK_WARNING (CWE-476): [#def15]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: address
#  210|   	gchar **pa;		/* parsed address */
#  211|   	SPDConnectionAddress *address = malloc(sizeof(SPDConnectionAddress));
#  212|-> 	address->unix_socket_name = NULL;
#  213|   	address->inet_socket_host = NULL;
#  214|   	address->dbus_bus = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def16]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:213: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: address
#  211|   	SPDConnectionAddress *address = malloc(sizeof(SPDConnectionAddress));
#  212|   	address->unix_socket_name = NULL;
#  213|-> 	address->inet_socket_host = NULL;
#  214|   	address->dbus_bus = NULL;
#  215|   

Error: CPPCHECK_WARNING (CWE-476): [#def17]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: address
#  212|   	address->unix_socket_name = NULL;
#  213|   	address->inet_socket_host = NULL;
#  214|-> 	address->dbus_bus = NULL;
#  215|   
#  216|   	if (env_address == NULL) {	// Default method = unix sockets

Error: CPPCHECK_WARNING (CWE-476): [#def18]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:1542: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1540|   		running = svoices_str[i];
# 1541|   
# 1542|-> 		svoices[i] = (SPDVoice *) malloc(sizeof(SPDVoice));
# 1543|   		svoices[i]->name = strsep(&running, delimiters);
# 1544|   		svoices[i]->language = strsep(&running, delimiters);

Error: CPPCHECK_WARNING (CWE-476): [#def19]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:1543: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1541|   
# 1542|   		svoices[i] = (SPDVoice *) malloc(sizeof(SPDVoice));
# 1543|-> 		svoices[i]->name = strsep(&running, delimiters);
# 1544|   		svoices[i]->language = strsep(&running, delimiters);
# 1545|   		svoices[i]->variant = strsep(&running, delimiters);

Error: CPPCHECK_WARNING (CWE-476): [#def20]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:1544: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1542|   		svoices[i] = (SPDVoice *) malloc(sizeof(SPDVoice));
# 1543|   		svoices[i]->name = strsep(&running, delimiters);
# 1544|-> 		svoices[i]->language = strsep(&running, delimiters);
# 1545|   		svoices[i]->variant = strsep(&running, delimiters);
# 1546|   		assert(svoices[i]->name != NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def21]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:1545: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1543|   		svoices[i]->name = strsep(&running, delimiters);
# 1544|   		svoices[i]->language = strsep(&running, delimiters);
# 1545|-> 		svoices[i]->variant = strsep(&running, delimiters);
# 1546|   		assert(svoices[i]->name != NULL);
# 1547|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def22]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:1546: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1544|   		svoices[i]->language = strsep(&running, delimiters);
# 1545|   		svoices[i]->variant = strsep(&running, delimiters);
# 1546|-> 		assert(svoices[i]->name != NULL);
# 1547|   	}
# 1548|   	free(svoices_str);

Error: CPPCHECK_WARNING (CWE-476): [#def23]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:1550: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: svoices
# 1548|   	free(svoices_str);
# 1549|   
# 1550|-> 	svoices[num_items] = NULL;
# 1551|   
# 1552|   	return svoices;

Error: CPPCHECK_WARNING (CWE-476): [#def24]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:1595: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
# 1593|   		if ((err) || (line == NULL))
# 1594|   			break;
# 1595|-> 		result[i] = line;
# 1596|   		if (i >= max_items - 2) {
# 1597|   			max_items *= 2;

Error: CPPCHECK_WARNING (CWE-401): [#def25]
speech-dispatcher-0.12.1/src/api/c/libspeechd.c:1598: error[memleakOnRealloc]: Common realloc mistake: 'result' nulled but not freed upon failure
# 1596|   		if (i >= max_items - 2) {
# 1597|   			max_items *= 2;
# 1598|-> 			result = realloc(result, max_items * sizeof(char *));
# 1599|   		}
# 1600|   	}

Error: COMPILER_WARNING (CWE-563): [#def26]
speech-dispatcher-0.12.1/src/audio/alsa.c: scope_hint: In function 'wait_for_poll'
speech-dispatcher-0.12.1/src/audio/alsa.c:296:13: warning[-Wunused-but-set-variable]: variable 'ret' set but not used
#  296 |         int ret;
#      |             ^~~
#  294|   	unsigned short revents;
#  295|   	snd_pcm_state_t state;
#  296|-> 	int ret;
#  297|   
#  298|   	//      MSG("Waiting for poll");

Error: COMPILER_WARNING (CWE-563): [#def27]
speech-dispatcher-0.12.1/src/audio/alsa.c: scope_hint: In function 'alsa_feed'
speech-dispatcher-0.12.1/src/audio/alsa.c:590:25: warning[-Wunused-but-set-variable]: variable 'state' set but not used
#  590 |         snd_pcm_state_t state;
#      |                         ^~~~~
#  588|   	int ret;
#  589|   
#  590|-> 	snd_pcm_state_t state;
#  591|   
#  592|   	snd_pcm_uframes_t framecount;

Error: COMPILER_WARNING (CWE-563): [#def28]
speech-dispatcher-0.12.1/src/clients/say/options.h:51:22: warning[-Wunused-variable]: ‘long_options’ defined but not used
#   51 | static struct option long_options[] = {
#      |                      ^~~~~~~~~~~~
#   49|   extern char *connection_name;
#   50|   
#   51|-> static struct option long_options[] = {
#   52|   	{"rate", 1, 0, 'r'},
#   53|   	{"pitch", 1, 0, 'p'},

Error: COMPILER_WARNING (CWE-563): [#def29]
speech-dispatcher-0.12.1/src/clients/say/say.c:47: included_from: Included from here.
speech-dispatcher-0.12.1/src/clients/say/options.h: scope_hint: At top level
speech-dispatcher-0.12.1/src/clients/say/options.h:80:14: warning[-Wunused-variable]: ‘short_options’ defined but not used
#   80 | static char *short_options = "r:p:R:i:l:o:OI:t:Ly:ckm:sxeP:N:n:wSCvh";
#      |              ^~~~~~~~~~~~~
#   78|   };
#   79|   
#   80|-> static char *short_options = "r:p:R:i:l:o:OI:t:Ly:ckm:sxeP:N:n:wSCvh";
#   81|   
#   82|   int options_parse(int argc, char *argv[]);

Error: COMPILER_WARNING (CWE-563): [#def30]
speech-dispatcher-0.12.1/src/clients/say/say.c:74:13: warning[-Wunused-variable]: unused variable ‘ret’
#   74 |         int ret;
#      |             ^~~
#   72|   	char *error;
#   73|   	int msg_arg_required = 0;
#   74|-> 	int ret;
#   75|   	int option_ret;
#   76|   	char *line;

Error: COMPILER_WARNING (CWE-563): [#def31]
speech-dispatcher-0.12.1/src/clients/say/say.c: scope_hint: In function ‘main’
speech-dispatcher-0.12.1/src/clients/say/say.c:75:13: warning[-Wunused-but-set-variable]: variable ‘option_ret’ set but not used
#   75 |         int option_ret;
#      |             ^~~~~~~~~~
#   73|   	int msg_arg_required = 0;
#   74|   	int ret;
#   75|-> 	int option_ret;
#   76|   	char *line;
#   77|   

Error: CPPCHECK_WARNING (CWE-476): [#def32]
speech-dispatcher-0.12.1/src/clients/say/say.c:134: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: locale
#  132|   	} else {
#  133|   		char *locale = strdup(setlocale(LC_MESSAGES, NULL));
#  134|-> 		char *dot = strchr(locale, '.');
#  135|   		if (dot)
#  136|   			*dot = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
speech-dispatcher-0.12.1/src/clients/say/say.c:134:29: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locale’ where non-null expected
speech-dispatcher-0.12.1/src/clients/say/say.c:116:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:122:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:129:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:133:39: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:133:32: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/clients/say/say.c:134:29: danger: argument 1 (‘locale’) from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  132|   	} else {
#  133|   		char *locale = strdup(setlocale(LC_MESSAGES, NULL));
#  134|-> 		char *dot = strchr(locale, '.');
#  135|   		if (dot)
#  136|   			*dot = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
speech-dispatcher-0.12.1/src/clients/say/say.c:143:21: warning[-Wanalyzer-malloc-leak]: leak of ‘locale’
speech-dispatcher-0.12.1/src/clients/say/say.c:116:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:122:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:129:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:133:39: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:133:32: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/clients/say/say.c:135:20: branch_false: following ‘false’ branch (when ‘dot’ is NULL)...
speech-dispatcher-0.12.1/src/clients/say/say.c:137:28: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:138:20: branch_false: following ‘false’ branch (when ‘at’ is NULL)...
speech-dispatcher-0.12.1/src/clients/say/say.c:140:36: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:141:20: branch_false: following ‘false’ branch (when ‘underscore’ is NULL)...
speech-dispatcher-0.12.1/src/clients/say/say.c:143:21: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:143:21: danger: ‘locale’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  141|   		if (underscore)
#  142|   			*underscore = '-';
#  143|-> 		if (spd_set_language(conn, locale))
#  144|   			printf("Invalid language %s!\n", locale);
#  145|   		free(locale);

Error: CPPCHECK_WARNING (CWE-476): [#def35]
speech-dispatcher-0.12.1/src/clients/say/say.c:346: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: line
#  344|   		/* In pipe mode, read from stdin, write to stdout, and also to Speech Dispatcher. */
#  345|   		line = (char *)malloc(MAX_LINELEN);
#  346|-> 		while (NULL != fgets(line, MAX_LINELEN, stdin)) {
#  347|   			fputs(line, stdout);
#  348|   			if (0 == strncmp(line, "!-!", 3)) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def36]
speech-dispatcher-0.12.1/src/clients/say/say.c:347:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘line’ where non-null expected
speech-dispatcher-0.12.1/src/clients/say/say.c:116:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:122:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:309:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:326:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:326:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:343:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:343:17: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:345:32: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:345:32: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/clients/say/say.c:346:24: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:347:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:347:25: danger: argument 1 (‘line’) from [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#  345|   		line = (char *)malloc(MAX_LINELEN);
#  346|   		while (NULL != fgets(line, MAX_LINELEN, stdin)) {
#  347|-> 			fputs(line, stdout);
#  348|   			if (0 == strncmp(line, "!-!", 3)) {
#  349|   				/* Remove EOL */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
speech-dispatcher-0.12.1/src/clients/say/say.c:351:33: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
speech-dispatcher-0.12.1/src/clients/say/say.c:116:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:122:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:309:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:326:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:326:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:343:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:343:17: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:345:32: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:345:32: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/clients/say/say.c:346:24: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:347:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:348:28: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:350:38: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:351:33: danger: ‘line’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  349|   				/* Remove EOL */
#  350|   				line[strlen(line) - 1] = 0;
#  351|-> 				spd_execute_command(conn, line + 3);
#  352|   			} else {
#  353|   				spd_say(conn, spd_priority, line);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
speech-dispatcher-0.12.1/src/clients/say/say.c:353:33: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
speech-dispatcher-0.12.1/src/clients/say/say.c:116:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:122:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:309:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:326:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:326:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:343:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:343:17: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:345:32: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:345:32: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/clients/say/say.c:346:24: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:347:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:348:28: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:353:33: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:353:33: danger: ‘line’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  351|   				spd_execute_command(conn, line + 3);
#  352|   			} else {
#  353|-> 				spd_say(conn, spd_priority, line);
#  354|   				if (wait_till_end)
#  355|   					sem_wait(semaphore);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
speech-dispatcher-0.12.1/src/clients/say/say.c:355:41: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
speech-dispatcher-0.12.1/src/clients/say/say.c:116:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:122:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:309:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:326:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:326:17: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:343:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:343:17: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:345:32: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:345:32: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/clients/say/say.c:346:24: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/clients/say/say.c:347:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/clients/say/say.c:355:41: danger: ‘line’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  353|   				spd_say(conn, spd_priority, line);
#  354|   				if (wait_till_end)
#  355|-> 					sem_wait(semaphore);
#  356|   			}
#  357|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:62:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:448:12: enter_function: entry to ‘connect_server’
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:451:20: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:453:12: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:455:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:456:32: call_function: calling ‘server_socket_name’ from ‘connect_server’
#   60|   static void system_error(const char *message)
#   61|   {
#   62|-> 	perror(message);
#   63|   	exit(1);
#   64|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:337:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:448:12: enter_function: entry to ‘connect_server’
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:451:20: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:453:12: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:455:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:456:32: call_function: calling ‘server_socket_name’ from ‘connect_server’
#  335|   static const char *login_name()
#  336|   {
#  337|-> 	return getpwuid(getuid())->pw_name;
#  338|   }
#  339|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:461:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:448:12: enter_function: entry to ‘connect_server’
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:451:20: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:453:12: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:455:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:456:32: call_function: calling ‘server_socket_name’ from ‘connect_server’
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:456:32: return_function: returning to ‘connect_server’ from ‘server_socket_name’
speech-dispatcher-0.12.1/src/clients/spdsend/server.c:461:13: danger: ‘sock’ leaks here
#  459|   		     + strlen(name.sun_path) + 1);
#  460|   
#  461|-> 	if (connect(sock, (struct sockaddr *)&name, name_size) < 0) {
#  462|   		close(sock);
#  463|   		return NONE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
speech-dispatcher-0.12.1/src/modules/cicero.c:183:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd2[0], 0)’
speech-dispatcher-0.12.1/src/modules/cicero.c:150:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:156:15: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:159:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:159:30: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:159:13: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:164:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:183:29: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/cicero.c:183:28: danger: ‘dup2(fd2[0], 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  181|   		}
#  182|   	case 0:{
#  183|-> 			if (dup2(fd2[0], 0) < 0	/* stdin */
#  184|   			    || dup2(fd1[1], 1) < 0) {	/* stdout */
#  185|   				DBG("Error dup2()\n");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
speech-dispatcher-0.12.1/src/modules/cicero.c:183:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd1[1], 1)’
speech-dispatcher-0.12.1/src/modules/cicero.c:150:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:156:15: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:159:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:159:30: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:159:13: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:164:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:183:28: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:184:32: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:184:32: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/cicero.c:183:29: danger: ‘dup2(fd1[1], 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  181|   		}
#  182|   	case 0:{
#  183|-> 			if (dup2(fd2[0], 0) < 0	/* stdin */
#  184|   			    || dup2(fd1[1], 1) < 0) {	/* stdout */
#  185|   				DBG("Error dup2()\n");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
speech-dispatcher-0.12.1/src/modules/cicero.c:189:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open(CiceroExecutableLog, 577, 384), 2)’
speech-dispatcher-0.12.1/src/modules/cicero.c:150:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:156:15: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:159:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:159:30: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:159:13: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:164:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:183:28: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:184:32: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:183:29: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:188:28: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:188:28: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/cicero.c:189:37: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/cicero.c:189:37: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/cicero.c:189:36: danger: ‘dup2(open(CiceroExecutableLog, 577, 384), 2)’ leaks here; was opened at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
#  187|   			}
#  188|   			if (stderr_redirect >= 0) {
#  189|-> 				if (dup2(stderr_redirect, 2) < 0)
#  190|   					DBG("ERROR: Couldn't redirect stderr, not logging for Cicero synthesizer.");
#  191|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
speech-dispatcher-0.12.1/src/modules/espeak.c:903:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘espeak_variants_array’
speech-dispatcher-0.12.1/src/modules/espeak.c:819:19: enter_function: entry to ‘espeak_list_synthesis_voices’
speech-dispatcher-0.12.1/src/modules/espeak.c:846:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/espeak.c:872:21: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:875:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/espeak.c:883:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:900:33: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/espeak.c:901:21: branch_true: following ‘true’ branch (when ‘i < numvariants’)...
speech-dispatcher-0.12.1/src/modules/espeak.c:902:36: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:903:17: danger: ‘espeak_variants_array + (long unsigned int)i * 16’ could be NULL: unchecked value from [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  901|   	for (i = 0; i < numvariants; i++) {
#  902|   		v = espeak_variants[i];
#  903|-> 		espeak_variants_array[i].name = g_strdup(v->name);
#  904|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  905|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
speech-dispatcher-0.12.1/src/modules/espeak.c:903:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘v’
speech-dispatcher-0.12.1/src/modules/espeak.c:819:19: enter_function: entry to ‘espeak_list_synthesis_voices’
speech-dispatcher-0.12.1/src/modules/espeak.c:846:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/espeak.c:872:21: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:875:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/espeak.c:883:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:889:21: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/espeak.c:892:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:889:21: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/espeak.c:896:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:901:21: branch_true: following ‘true’ branch (when ‘i < numvariants’)...
speech-dispatcher-0.12.1/src/modules/espeak.c:902:36: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:901:21: branch_true: following ‘true’ branch (when ‘i < numvariants’)...
speech-dispatcher-0.12.1/src/modules/espeak.c:902:36: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/espeak.c:903:49: danger: dereference of NULL ‘v’
#  901|   	for (i = 0; i < numvariants; i++) {
#  902|   		v = espeak_variants[i];
#  903|-> 		espeak_variants_array[i].name = g_strdup(v->name);
#  904|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  905|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def48]
speech-dispatcher-0.12.1/src/modules/espeak.c:906: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: espeak_variants_array
#  904|   		espeak_variants_array[i].identifier = g_strdup(v->identifier);
#  905|   	}
#  906|-> 	espeak_variants_array[numvariants].name = NULL;
#  907|   
#  908|   	if (EspeakMbrola)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
speech-dispatcher-0.12.1/src/modules/festival.c:118:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:118:1: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:118:1: branch_true: following ‘true’ branch (when ‘server >= 0’)...
speech-dispatcher-0.12.1/src/modules/festival.c:118:1: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:118:1: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:118:1: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:118:1: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:118:1: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  116|   	}
#  117|   
#  118|-> FEST_SET_SYMB(FestivalSetMultiMode, "speechd-enable-multi-mode")
#  119|   
#  120|       FEST_SET_INT(FestivalSetRate, "speechd-set-rate")

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: branch_true: following ‘true’ branch (when ‘server >= 0’)...
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:120:5: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  118|   FEST_SET_SYMB(FestivalSetMultiMode, "speechd-enable-multi-mode")
#  119|   
#  120|->     FEST_SET_INT(FestivalSetRate, "speechd-set-rate")
#  121|       FEST_SET_INT(FestivalSetPitch, "speechd-set-pitch")
#  122|       FEST_SET_SYMB(FestivalSetPunctuationMode, "speechd-set-punctuation-mode")

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: branch_true: following ‘true’ branch (when ‘server >= 0’)...
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:121:5: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  119|   
#  120|       FEST_SET_INT(FestivalSetRate, "speechd-set-rate")
#  121|->     FEST_SET_INT(FestivalSetPitch, "speechd-set-pitch")
#  122|       FEST_SET_SYMB(FestivalSetPunctuationMode, "speechd-set-punctuation-mode")
#  123|       FEST_SET_STR(FestivalSetCapLetRecogn,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
speech-dispatcher-0.12.1/src/modules/festival.c:122:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:122:5: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:122:5: branch_true: following ‘true’ branch (when ‘server >= 0’)...
speech-dispatcher-0.12.1/src/modules/festival.c:122:5: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:122:5: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:122:5: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:122:5: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:122:5: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
#  120|       FEST_SET_INT(FestivalSetRate, "speechd-set-rate")
#  121|       FEST_SET_INT(FestivalSetPitch, "speechd-set-pitch")
#  122|->     FEST_SET_SYMB(FestivalSetPunctuationMode, "speechd-set-punctuation-mode")
#  123|       FEST_SET_STR(FestivalSetCapLetRecogn,
#  124|   	     "speechd-set-capital-character-recognition-mode")

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: enter_function: entry to ‘FestivalSetCapLetRecogn’
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: call_function: inlined call to ‘g_strdup_inline’ from ‘FestivalSetCapLetRecogn’
speech-dispatcher-0.12.1/src/modules/festival.c:123:5: danger: ‘fd’ leaks here; was allocated at [(6)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/5)
#  121|       FEST_SET_INT(FestivalSetPitch, "speechd-set-pitch")
#  122|       FEST_SET_SYMB(FestivalSetPunctuationMode, "speechd-set-punctuation-mode")
#  123|->     FEST_SET_STR(FestivalSetCapLetRecogn,
#  124|   	     "speechd-set-capital-character-recognition-mode")
#  125|       FEST_SET_STR(FestivalSetLanguage, "speechd-set-language")

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: enter_function: entry to ‘FestivalSetLanguage’
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: call_function: inlined call to ‘g_strdup_inline’ from ‘FestivalSetLanguage’
speech-dispatcher-0.12.1/src/modules/festival.c:125:5: danger: ‘fd’ leaks here; was allocated at [(6)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/5)
#  123|       FEST_SET_STR(FestivalSetCapLetRecogn,
#  124|   	     "speechd-set-capital-character-recognition-mode")
#  125|->     FEST_SET_STR(FestivalSetLanguage, "speechd-set-language")
#  126|       FEST_SET_STR(FestivalSetVoice, "speechd-set-voice")
#  127|       FEST_SET_SYMB(FestivalSetSynthesisVoice, "speechd-set-festival-voice")

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: enter_function: entry to ‘FestivalSetVoice’
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: call_function: inlined call to ‘g_strdup_inline’ from ‘FestivalSetVoice’
speech-dispatcher-0.12.1/src/modules/festival.c:126:5: danger: ‘fd’ leaks here; was allocated at [(6)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/5)
#  124|   	     "speechd-set-capital-character-recognition-mode")
#  125|       FEST_SET_STR(FestivalSetLanguage, "speechd-set-language")
#  126|->     FEST_SET_STR(FestivalSetVoice, "speechd-set-voice")
#  127|       FEST_SET_SYMB(FestivalSetSynthesisVoice, "speechd-set-festival-voice")
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
speech-dispatcher-0.12.1/src/modules/festival.c:127:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:127:5: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:127:5: branch_true: following ‘true’ branch (when ‘server >= 0’)...
speech-dispatcher-0.12.1/src/modules/festival.c:127:5: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:127:5: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:127:5: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:127:5: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:127:5: danger: ‘fd’ leaks here; was allocated at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
#  125|       FEST_SET_STR(FestivalSetLanguage, "speechd-set-language")
#  126|       FEST_SET_STR(FestivalSetVoice, "speechd-set-voice")
#  127|->     FEST_SET_SYMB(FestivalSetSynthesisVoice, "speechd-set-festival-voice")
#  128|   
#  129|   /* Internal functions prototypes */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
speech-dispatcher-0.12.1/src/modules/festival.c:384:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival.c:374:19: enter_function: entry to ‘festivalGetVoices’
speech-dispatcher-0.12.1/src/modules/festival.c:384:9: branch_true: following ‘true’ branch (when ‘server >= 0’)...
speech-dispatcher-0.12.1/src/modules/festival.c:384:9: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:384:9: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:384:9: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:384:9: call_function: inlined call to ‘g_strdup_inline’ from ‘festivalGetVoices’
speech-dispatcher-0.12.1/src/modules/festival.c:384:9: danger: ‘fd’ leaks here; was allocated at [(4)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/3)
#  382|   	SPDVoice **result;
#  383|   
#  384|-> 	FEST_SEND_CMD("(apply append (voice-list-language-codes))");
#  385|   	if (festival_read_response(info, &reply)) {
#  386|   		DBG("ERROR: Invalid reply for voice-list");

Error: GCC_ANALYZER_WARNING (CWE-835): [#def58]
speech-dispatcher-0.12.1/src/modules/festival.c:408:27: warning[-Wanalyzer-infinite-loop]: infinite loop
speech-dispatcher-0.12.1/src/modules/festival.c:408:27: danger: infinite loop here
speech-dispatcher-0.12.1/src/modules/festival.c:408:20: branch_false: if it ever follows ‘false’ branch, it will always do so...
speech-dispatcher-0.12.1/src/modules/festival.c:410:26: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:410:25: branch_true: if it ever follows ‘true’ branch, it will always do so...
speech-dispatcher-0.12.1/src/modules/festival.c:410:25: branch_true: ...to here
#  406|   
#  407|   	for (i = 0, j = 0;; j++) {
#  408|-> 		if (voices[i] == NULL)
#  409|   			break;
#  410|   		else if (strlen(voices[i]) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
speech-dispatcher-0.12.1/src/modules/festival.c:413:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
speech-dispatcher-0.12.1/src/modules/festival.c:385:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:390:14: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:394:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:408:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:410:26: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:414:43: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival.c:416:28: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:419:28: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:421:28: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:423:33: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:423:33: branch_false: following ‘false’ branch (when ‘lang’ is NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:425:33: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:425:33: branch_false: following ‘false’ branch (when ‘region’ is NULL)...
speech-dispatcher-0.12.1/src/modules/festival.c:428:33: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:408:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival.c:410:26: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival.c:413:37: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/6)
#  411|   			continue;
#  412|   		else {
#  413|-> 			result[j] = g_malloc(sizeof(SPDVoice));
#  414|   			result[j]->name = strdup(voices[i]);
#  415|   			lang = voices[i + 1];

Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
speech-dispatcher-0.12.1/src/modules/festival_client.c:207:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:461:10: enter_function: entry to ‘festivalOpen’
speech-dispatcher-0.12.1/src/modules/festival_client.c:474:13: call_function: calling ‘festival_socket_open’ from ‘festivalOpen’
#  205|   	if ((serv_addr.sin_addr.s_addr = inet_addr(host)) == -1) {
#  206|   		/* its a name rather than an ipnum */
#  207|-> 		serverhost = gethostbyname(host);
#  208|   		if (serverhost == (struct hostent *)0) {
#  209|   			fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
speech-dispatcher-0.12.1/src/modules/festival_client.c:211:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:461:10: enter_function: entry to ‘festivalOpen’
speech-dispatcher-0.12.1/src/modules/festival_client.c:474:13: call_function: calling ‘festival_socket_open’ from ‘festivalOpen’
#  209|   			fprintf(stderr,
#  210|   				"festival_client: gethostbyname failed\n");
#  211|-> 			close(fd);
#  212|   			return -1;
#  213|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
speech-dispatcher-0.12.1/src/modules/festival_client.c:220:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:461:10: enter_function: entry to ‘festivalOpen’
speech-dispatcher-0.12.1/src/modules/festival_client.c:474:13: call_function: calling ‘festival_socket_open’ from ‘festivalOpen’
#  218|   	serv_addr.sin_port = htons(port);
#  219|   
#  220|-> 	if (connect(fd, (struct sockaddr *)&serv_addr, sizeof(serv_addr)) != 0) {
#  221|   		fprintf(stderr, "festival_client: connect to server failed\n");
#  222|   		close(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
speech-dispatcher-0.12.1/src/modules/festival_client.c:482:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:461:10: enter_function: entry to ‘festivalOpen’
speech-dispatcher-0.12.1/src/modules/festival_client.c:474:13: call_function: calling ‘festival_socket_open’ from ‘festivalOpen’
speech-dispatcher-0.12.1/src/modules/festival_client.c:474:13: return_function: returning to ‘festivalOpen’ from ‘festival_socket_open’
speech-dispatcher-0.12.1/src/modules/festival_client.c:476:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:482:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:482:9: branch_true: following ‘true’ branch (when ‘server >= 0’)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:482:9: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:482:9: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival_client.c:482:9: branch_true: following ‘true’ branch (when ‘fd’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:482:9: call_function: inlined call to ‘g_strdup_inline’ from ‘festivalOpen’
speech-dispatcher-0.12.1/src/modules/festival_client.c:482:9: danger: ‘fd’ leaks here; was allocated at [(12)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/11)
#  480|   	}
#  481|   
#  482|-> 	FEST_SEND_CMD("(require 'speech-dispatcher)");
#  483|   	ret = festival_read_response(info, &resp);
#  484|   	if (ret || resp == NULL || strcmp(resp, "t\n")) {

Error: COMPILER_WARNING: [#def64]
speech-dispatcher-0.12.1/src/modules/festival_client.c:485:21: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#  485 |                 DBG("ERROR: Can't load speech-dispatcher module into Festival."
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  483|   	ret = festival_read_response(info, &resp);
#  484|   	if (ret || resp == NULL || strcmp(resp, "t\n")) {
#  485|-> 		DBG("ERROR: Can't load speech-dispatcher module into Festival."
#  486|   		    "Reason: %s", resp);
#  487|   		delete_FT_Info(info);

Error: COMPILER_WARNING: [#def65]
speech-dispatcher-0.12.1/src/modules/module_utils.h:40: included_from: Included from here.
speech-dispatcher-0.12.1/src/modules/festival_client.c:73: included_from: Included from here.
speech-dispatcher-0.12.1/src/modules/festival_client.c: scope_hint: In function ‘festivalOpen’
speech-dispatcher-0.12.1/src/modules/festival_client.c:498:21: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#  498 |                 DBG("ERROR: Can't set Wavefiletype to nist in Festival. Reason: %s", resp);
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
speech-dispatcher-0.12.1/src/modules/festival_client.c:498:81: note: format string is defined here
#  498 |                 DBG("ERROR: Can't set Wavefiletype to nist in Festival. Reason: %s", resp);
#      |                                                                                 ^~
#  496|   	ret = festival_read_response(info, &resp);
#  497|   	if (ret || resp == NULL || strcmp(resp, "nist\n")) {
#  498|-> 		DBG("ERROR: Can't set Wavefiletype to nist in Festival. Reason: %s", resp);
#  499|   		delete_FT_Info(info);
#  500|   		if (!ret && resp)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
speech-dispatcher-0.12.1/src/modules/festival_client.c:532:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:510:1: enter_function: entry to ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: call_function: calling ‘festival_check_info’ from ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: return_function: returning to ‘festival_speak_command’ from ‘festival_check_info’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: following ‘false’ branch (when ‘command’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:525:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:528:14: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival_client.c:531:12: branch_true: following ‘true’ branch (when ‘symbol == 0’)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:532:23: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:532:23: danger: ‘fd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  530|   	/* Send the command and data */
#  531|   	if (symbol == 0)
#  532|-> 		str = g_strdup_printf("(%s \"", command);
#  533|   	else
#  534|   		str = g_strdup_printf("(%s '", command);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
speech-dispatcher-0.12.1/src/modules/festival_client.c:534:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:510:1: enter_function: entry to ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: call_function: calling ‘festival_check_info’ from ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: return_function: returning to ‘festival_speak_command’ from ‘festival_check_info’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: following ‘false’ branch (when ‘command’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:525:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:528:14: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival_client.c:531:12: branch_false: following ‘false’ branch (when ‘symbol != 0’)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:534:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:534:23: danger: ‘fd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
#  532|   		str = g_strdup_printf("(%s \"", command);
#  533|   	else
#  534|-> 		str = g_strdup_printf("(%s '", command);
#  535|   	fputs(str, fd);
#  536|   	/* Copy text over to server, escaping any quotes */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def68]
speech-dispatcher-0.12.1/src/modules/festival_client.c:535:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fd’ where non-null expected
speech-dispatcher-0.12.1/src/modules/festival_client.c:510:1: enter_function: entry to ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: call_function: calling ‘festival_check_info’ from ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: return_function: returning to ‘festival_speak_command’ from ‘festival_check_info’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: following ‘false’ branch (when ‘command’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:525:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:528:14: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/festival_client.c:535:9: danger: argument 2 (‘fd’) from [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
#  533|   	else
#  534|   		str = g_strdup_printf("(%s '", command);
#  535|-> 	fputs(str, fd);
#  536|   	/* Copy text over to server, escaping any quotes */
#  537|   	for (p = text; p && (*p != '\0'); p++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
speech-dispatcher-0.12.1/src/modules/festival_client.c:547:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:510:1: enter_function: entry to ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: call_function: calling ‘festival_check_info’ from ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: return_function: returning to ‘festival_speak_command’ from ‘festival_check_info’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: following ‘false’ branch (when ‘command’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:525:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:528:14: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival_client.c:547:9: danger: ‘fd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
#  545|   		fprintf(fd, ")\n");
#  546|   
#  547|-> 	DBG("-> Festival: escaped text is %s", text);
#  548|   	DBG("-> Festival: |%sthe text is displayed above\")|", str);
#  549|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
speech-dispatcher-0.12.1/src/modules/festival_client.c:548:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:510:1: enter_function: entry to ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: call_function: calling ‘festival_check_info’ from ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: return_function: returning to ‘festival_speak_command’ from ‘festival_check_info’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: following ‘false’ branch (when ‘command’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:525:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:528:14: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival_client.c:548:9: danger: ‘fd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
#  546|   
#  547|   	DBG("-> Festival: escaped text is %s", text);
#  548|-> 	DBG("-> Festival: |%sthe text is displayed above\")|", str);
#  549|   
#  550|   	g_free(str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
speech-dispatcher-0.12.1/src/modules/festival_client.c:550:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:510:1: enter_function: entry to ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: call_function: calling ‘festival_check_info’ from ‘festival_speak_command’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:13: return_function: returning to ‘festival_speak_command’ from ‘festival_check_info’
speech-dispatcher-0.12.1/src/modules/festival_client.c:518:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:520:12: branch_false: following ‘false’ branch (when ‘command’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:522:12: branch_false: following ‘false’ branch (when ‘text’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/festival_client.c:525:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:528:14: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival_client.c:550:9: danger: ‘fd’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
#  548|   	DBG("-> Festival: |%sthe text is displayed above\")|", str);
#  549|   
#  550|-> 	g_free(str);
#  551|   	/* Close the stream (but not the socket) */
#  552|   	fclose(fd);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def72]
speech-dispatcher-0.12.1/src/modules/festival_client.c:639:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fd’ where non-null expected
speech-dispatcher-0.12.1/src/modules/festival_client.c:617:10: enter_function: entry to ‘festivalGetDataMulti’
speech-dispatcher-0.12.1/src/modules/festival_client.c:625:13: call_function: calling ‘festival_check_info’ from ‘festivalGetDataMulti’
speech-dispatcher-0.12.1/src/modules/festival_client.c:625:13: return_function: returning to ‘festivalGetDataMulti’ from ‘festival_check_info’
speech-dispatcher-0.12.1/src/modules/festival_client.c:625:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:633:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:638:14: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/festival_client.c:639:9: danger: argument 4 (‘fd’) from [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#argument 4 of ‘__builtin_fwrite’ must be non-null
#  637|   	DBG("-> Festival: (speechd-next)");
#  638|   	fd = fdopen(dup(info->server_fd), "wb");
#  639|-> 	fprintf(fd, "(speechd-next)\n");
#  640|   	fflush(fd);
#  641|   	fclose(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
speech-dispatcher-0.12.1/src/modules/festival_client.c:640:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fd’
speech-dispatcher-0.12.1/src/modules/festival_client.c:617:10: enter_function: entry to ‘festivalGetDataMulti’
speech-dispatcher-0.12.1/src/modules/festival_client.c:625:13: call_function: calling ‘festival_check_info’ from ‘festivalGetDataMulti’
speech-dispatcher-0.12.1/src/modules/festival_client.c:625:13: return_function: returning to ‘festivalGetDataMulti’ from ‘festival_check_info’
speech-dispatcher-0.12.1/src/modules/festival_client.c:625:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/festival_client.c:633:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/festival_client.c:638:14: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/festival_client.c:640:9: danger: ‘fd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
#  638|   	fd = fdopen(dup(info->server_fd), "wb");
#  639|   	fprintf(fd, "(speechd-next)\n");
#  640|-> 	fflush(fd);
#  641|   	fclose(fd);
#  642|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
speech-dispatcher-0.12.1/src/modules/generic.c:283:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gerror’
speech-dispatcher-0.12.1/src/modules/generic.c:222:17: release_memory: ‘gerror’ is NULL
speech-dispatcher-0.12.1/src/modules/generic.c:226:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:230:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:233:9: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:234:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:255:9: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:256:13: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:256:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:257:21: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:257:20: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:282:12: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:282:12: branch_true: following ‘true’ branch (when ‘tmp’ is NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:283:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:283:17: release_memory: ‘gerror’ is NULL
speech-dispatcher-0.12.1/src/modules/generic.c:284:17: release_memory: ‘gerror’ is NULL
speech-dispatcher-0.12.1/src/modules/generic.c:283:17: danger: dereference of NULL ‘gerror’
#  281|   
#  282|   	if (tmp == NULL) {
#  283|-> 		DBG("Warning: Conversion failed: %d: %s\n", gerror->code, gerror->message);
#  284|   		g_error_free(gerror);
#  285|   		return -1;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def75]
speech-dispatcher-0.12.1/src/modules/generic.c:379:21: warning[-Wanalyzer-null-argument]: use of NULL ‘mstring’ where non-null expected
speech-dispatcher-0.12.1/src/modules/generic.c:368:7: enter_function: entry to ‘string_replace’
speech-dispatcher-0.12.1/src/modules/generic.c:379:21: danger: argument 1 (‘mstring’) NULL where non-null expected
#argument 1 of ‘__builtin_strstr’ must be non-null
#  377|   	while (1) {
#  378|   		/* Split the string in two parts, omit the token */
#  379|-> 		p = strstr(mstring, token);
#  380|   		if (p == NULL) {
#  381|   			return mstring;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_true: following ‘true’ branch (when ‘ret != 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: danger: ‘module_pipe.pc[0]’ leaks here
#  444|   		ret = pipe(module_pipe.cp);
#  445|   		if (ret != 0) {
#  446|-> 			DBG("Can't create pipe cp\n");
#  447|   			close(module_pipe.pc[0]);
#  448|   			close(module_pipe.pc[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_true: following ‘true’ branch (when ‘ret != 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: danger: ‘module_pipe.pc[1]’ leaks here
#  444|   		ret = pipe(module_pipe.cp);
#  445|   		if (ret != 0) {
#  446|-> 			DBG("Can't create pipe cp\n");
#  447|   			close(module_pipe.pc[0]);
#  448|   			close(module_pipe.pc[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
speech-dispatcher-0.12.1/src/modules/generic.c:447:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_true: following ‘true’ branch (when ‘ret != 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:447:25: danger: ‘module_pipe.pc[0]’ leaks here
#  445|   		if (ret != 0) {
#  446|   			DBG("Can't create pipe cp\n");
#  447|-> 			close(module_pipe.pc[0]);
#  448|   			close(module_pipe.pc[1]);
#  449|   			generic_speaking = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
speech-dispatcher-0.12.1/src/modules/generic.c:447:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_true: following ‘true’ branch (when ‘ret != 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:447:25: danger: ‘module_pipe.pc[1]’ leaks here
#  445|   		if (ret != 0) {
#  446|   			DBG("Can't create pipe cp\n");
#  447|-> 			close(module_pipe.pc[0]);
#  448|   			close(module_pipe.pc[1]);
#  449|   			generic_speaking = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
speech-dispatcher-0.12.1/src/modules/generic.c:448:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_true: following ‘true’ branch (when ‘ret != 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:446:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:448:25: danger: ‘module_pipe.pc[1]’ leaks here
#  446|   			DBG("Can't create pipe cp\n");
#  447|   			close(module_pipe.pc[0]);
#  448|-> 			close(module_pipe.pc[1]);
#  449|   			generic_speaking = 0;
#  450|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: danger: ‘module_pipe.cp[0]’ leaks here
#  451|   		}
#  452|   
#  453|-> 		module_report_event_begin();
#  454|   
#  455|   		/* Create a new process so that we could send it signals */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: danger: ‘module_pipe.cp[1]’ leaks here
#  451|   		}
#  452|   
#  453|-> 		module_report_event_begin();
#  454|   
#  455|   		/* Create a new process so that we could send it signals */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: danger: ‘module_pipe.pc[0]’ leaks here
#  451|   		}
#  452|   
#  453|-> 		module_report_event_begin();
#  454|   
#  455|   		/* Create a new process so that we could send it signals */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: danger: ‘module_pipe.pc[1]’ leaks here
#  451|   		}
#  452|   
#  453|-> 		module_report_event_begin();
#  454|   
#  455|   		/* Create a new process so that we could send it signals */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
speech-dispatcher-0.12.1/src/modules/generic.c:460:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:460:25: danger: ‘module_pipe.cp[0]’ leaks here
#  458|   		switch (generic_pid) {
#  459|   		case -1:
#  460|-> 			DBG("Can't say the message. fork() failed!\n");
#  461|   			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
speech-dispatcher-0.12.1/src/modules/generic.c:460:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:460:25: danger: ‘module_pipe.cp[1]’ leaks here
#  458|   		switch (generic_pid) {
#  459|   		case -1:
#  460|-> 			DBG("Can't say the message. fork() failed!\n");
#  461|   			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
speech-dispatcher-0.12.1/src/modules/generic.c:460:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:460:25: danger: ‘module_pipe.pc[0]’ leaks here
#  458|   		switch (generic_pid) {
#  459|   		case -1:
#  460|-> 			DBG("Can't say the message. fork() failed!\n");
#  461|   			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
speech-dispatcher-0.12.1/src/modules/generic.c:460:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:460:25: danger: ‘module_pipe.pc[1]’ leaks here
#  458|   		switch (generic_pid) {
#  459|   		case -1:
#  460|-> 			DBG("Can't say the message. fork() failed!\n");
#  461|   			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
speech-dispatcher-0.12.1/src/modules/generic.c:461:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:461:25: danger: ‘module_pipe.cp[0]’ leaks here
#  459|   		case -1:
#  460|   			DBG("Can't say the message. fork() failed!\n");
#  461|-> 			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);
#  463|   			close(module_pipe.cp[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
speech-dispatcher-0.12.1/src/modules/generic.c:461:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:461:25: danger: ‘module_pipe.cp[1]’ leaks here
#  459|   		case -1:
#  460|   			DBG("Can't say the message. fork() failed!\n");
#  461|-> 			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);
#  463|   			close(module_pipe.cp[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
speech-dispatcher-0.12.1/src/modules/generic.c:461:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:461:25: danger: ‘module_pipe.pc[0]’ leaks here
#  459|   		case -1:
#  460|   			DBG("Can't say the message. fork() failed!\n");
#  461|-> 			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);
#  463|   			close(module_pipe.cp[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
speech-dispatcher-0.12.1/src/modules/generic.c:461:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:461:25: danger: ‘module_pipe.pc[1]’ leaks here
#  459|   		case -1:
#  460|   			DBG("Can't say the message. fork() failed!\n");
#  461|-> 			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);
#  463|   			close(module_pipe.cp[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def93]
speech-dispatcher-0.12.1/src/modules/generic.c:462:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:462:25: danger: ‘module_pipe.cp[0]’ leaks here
#  460|   			DBG("Can't say the message. fork() failed!\n");
#  461|   			close(module_pipe.pc[0]);
#  462|-> 			close(module_pipe.pc[1]);
#  463|   			close(module_pipe.cp[0]);
#  464|   			close(module_pipe.cp[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def94]
speech-dispatcher-0.12.1/src/modules/generic.c:462:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:462:25: danger: ‘module_pipe.cp[1]’ leaks here
#  460|   			DBG("Can't say the message. fork() failed!\n");
#  461|   			close(module_pipe.pc[0]);
#  462|-> 			close(module_pipe.pc[1]);
#  463|   			close(module_pipe.cp[0]);
#  464|   			close(module_pipe.cp[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def95]
speech-dispatcher-0.12.1/src/modules/generic.c:462:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:462:25: danger: ‘module_pipe.pc[1]’ leaks here
#  460|   			DBG("Can't say the message. fork() failed!\n");
#  461|   			close(module_pipe.pc[0]);
#  462|-> 			close(module_pipe.pc[1]);
#  463|   			close(module_pipe.cp[0]);
#  464|   			close(module_pipe.cp[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
speech-dispatcher-0.12.1/src/modules/generic.c:463:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:463:25: danger: ‘module_pipe.cp[0]’ leaks here
#  461|   			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);
#  463|-> 			close(module_pipe.cp[0]);
#  464|   			close(module_pipe.cp[1]);
#  465|   			generic_speaking = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
speech-dispatcher-0.12.1/src/modules/generic.c:463:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:463:25: danger: ‘module_pipe.cp[1]’ leaks here
#  461|   			close(module_pipe.pc[0]);
#  462|   			close(module_pipe.pc[1]);
#  463|-> 			close(module_pipe.cp[0]);
#  464|   			close(module_pipe.cp[1]);
#  465|   			generic_speaking = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
speech-dispatcher-0.12.1/src/modules/generic.c:464:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:464:25: danger: ‘module_pipe.cp[1]’ leaks here
#  462|   			close(module_pipe.pc[1]);
#  463|   			close(module_pipe.cp[0]);
#  464|-> 			close(module_pipe.cp[1]);
#  465|   			generic_speaking = 0;
#  466|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
speech-dispatcher-0.12.1/src/modules/generic.c:480:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:396:7: enter_function: entry to ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:475:36: branch_true: following ‘true’ branch (when ‘helper’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:476:50: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:480:42: danger: ‘module_pipe.cp[0]’ leaks here
#  478|   					tmpdir = g_strdup("/tmp");
#  479|   
#  480|-> 				helper = g_get_home_dir();
#  481|   				if (helper)
#  482|   					homedir = g_strdup(helper);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
speech-dispatcher-0.12.1/src/modules/generic.c:480:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:396:7: enter_function: entry to ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:475:36: branch_true: following ‘true’ branch (when ‘helper’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:476:50: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:480:42: danger: ‘module_pipe.cp[1]’ leaks here
#  478|   					tmpdir = g_strdup("/tmp");
#  479|   
#  480|-> 				helper = g_get_home_dir();
#  481|   				if (helper)
#  482|   					homedir = g_strdup(helper);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
speech-dispatcher-0.12.1/src/modules/generic.c:480:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:396:7: enter_function: entry to ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:475:36: branch_true: following ‘true’ branch (when ‘helper’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:476:50: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:480:42: danger: ‘module_pipe.pc[0]’ leaks here
#  478|   					tmpdir = g_strdup("/tmp");
#  479|   
#  480|-> 				helper = g_get_home_dir();
#  481|   				if (helper)
#  482|   					homedir = g_strdup(helper);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
speech-dispatcher-0.12.1/src/modules/generic.c:480:42: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:396:7: enter_function: entry to ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:475:36: branch_true: following ‘true’ branch (when ‘helper’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:476:50: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:480:42: danger: ‘module_pipe.pc[1]’ leaks here
#  478|   					tmpdir = g_strdup("/tmp");
#  479|   
#  480|-> 				helper = g_get_home_dir();
#  481|   				if (helper)
#  482|   					homedir = g_strdup(helper);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def103]
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:396:7: enter_function: entry to ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:475:36: branch_true: following ‘true’ branch (when ‘helper’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:476:50: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:481:36: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:482:51: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:489:36: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: danger: ‘module_pipe.cp[0]’ leaks here
#  488|   				   is also delivered to the child processes created by system()) */
#  489|   				if (setpgid(0, 0) == -1)
#  490|-> 					DBG("Can't set myself as project group leader!");
#  491|   
#  492|   				e_string = g_strdup(GenericExecuteSynth);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:396:7: enter_function: entry to ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:475:36: branch_true: following ‘true’ branch (when ‘helper’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:476:50: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:481:36: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:482:51: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:489:36: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: danger: ‘module_pipe.cp[1]’ leaks here
#  488|   				   is also delivered to the child processes created by system()) */
#  489|   				if (setpgid(0, 0) == -1)
#  490|-> 					DBG("Can't set myself as project group leader!");
#  491|   
#  492|   				e_string = g_strdup(GenericExecuteSynth);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def105]
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:396:7: enter_function: entry to ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:475:36: branch_true: following ‘true’ branch (when ‘helper’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:476:50: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:481:36: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:482:51: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:489:36: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: danger: ‘module_pipe.pc[0]’ leaks here
#  488|   				   is also delivered to the child processes created by system()) */
#  489|   				if (setpgid(0, 0) == -1)
#  490|-> 					DBG("Can't set myself as project group leader!");
#  491|   
#  492|   				e_string = g_strdup(GenericExecuteSynth);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:396:7: enter_function: entry to ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:475:36: branch_true: following ‘true’ branch (when ‘helper’ is non-NULL)...
speech-dispatcher-0.12.1/src/modules/generic.c:476:50: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:481:36: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:482:51: call_function: inlined call to ‘g_strdup_inline’ from ‘_generic_speak’
speech-dispatcher-0.12.1/src/modules/generic.c:489:36: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:490:41: danger: ‘module_pipe.pc[1]’ leaks here
#  488|   				   is also delivered to the child processes created by system()) */
#  489|   				if (setpgid(0, 0) == -1)
#  490|-> 					DBG("Can't set myself as project group leader!");
#  491|   
#  492|   				e_string = g_strdup(GenericExecuteSynth);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def107]
speech-dispatcher-0.12.1/src/modules/generic.c:557:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:557:29: danger: ‘module_pipe.cp[0]’ leaks here
#  555|   
#  556|   			generic_position =
#  557|-> 			    module_parent_wfork(module_pipe, generic_message,
#  558|   						generic_message_type,
#  559|   						GenericMaxChunkLength,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def108]
speech-dispatcher-0.12.1/src/modules/generic.c:557:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.cp[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:557:29: danger: ‘module_pipe.cp[1]’ leaks here
#  555|   
#  556|   			generic_position =
#  557|-> 			    module_parent_wfork(module_pipe, generic_message,
#  558|   						generic_message_type,
#  559|   						GenericMaxChunkLength,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def109]
speech-dispatcher-0.12.1/src/modules/generic.c:557:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[0]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:557:29: danger: ‘module_pipe.pc[0]’ leaks here
#  555|   
#  556|   			generic_position =
#  557|-> 			    module_parent_wfork(module_pipe, generic_message,
#  558|   						generic_message_type,
#  559|   						GenericMaxChunkLength,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
speech-dispatcher-0.12.1/src/modules/generic.c:557:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘module_pipe.pc[1]’
speech-dispatcher-0.12.1/src/modules/generic.c:438:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:444:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:445:20: branch_false: following ‘false’ branch (when ‘ret == 0’)...
speech-dispatcher-0.12.1/src/modules/generic.c:453:17: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/generic.c:557:29: danger: ‘module_pipe.pc[1]’ leaks here
#  555|   
#  556|   			generic_position =
#  557|-> 			    module_parent_wfork(module_pipe, generic_message,
#  558|   						generic_message_type,
#  559|   						GenericMaxChunkLength,

Error: CPPCHECK_WARNING (CWE-476): [#def111]
speech-dispatcher-0.12.1/src/modules/module_main.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: msg
#   67|   		if (msg == NULL)
#   68|   			msg = strdup("Unspecified initialization error\n");
#   69|-> 		printf("399-%s\n", msg);
#   70|   		printf("399 ERR CANT INIT MODULE\n");
#   71|   		fflush(stdout);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
speech-dispatcher-0.12.1/src/modules/module_main.c:71:17: warning[-Wanalyzer-malloc-leak]: leak of 'msg'
speech-dispatcher-0.12.1/src/modules/module_main.c:51:12: branch_false: following 'false' branch...
speech-dispatcher-0.12.1/src/modules/module_main.c:57:16: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_main.c:58:12: branch_false: following 'false' branch (when the strings are equal)...
speech-dispatcher-0.12.1/src/modules/module_main.c:65:15: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_main.c:66:12: branch_true: following 'true' branch...
speech-dispatcher-0.12.1/src/modules/module_main.c:67:21: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/module_main.c:67:20: branch_true: following 'true' branch...
speech-dispatcher-0.12.1/src/modules/module_main.c:68:31: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/module_main.c:68:31: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/module_main.c:71:17: danger: 'msg' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   69|   		printf("399-%s\n", msg);
#   70|   		printf("399 ERR CANT INIT MODULE\n");
#   71|-> 		fflush(stdout);
#   72|   		free(msg);
#   73|   		module_close();

Error: CPPCHECK_WARNING (CWE-476): [#def113]
speech-dispatcher-0.12.1/src/modules/module_main.c:79: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: msg
#   77|   	if (msg == NULL)
#   78|   		msg = strdup("Unspecified initialization success\n");
#   79|-> 	printf("299-%s\n", msg);
#   80|   	printf("299 OK LOADED SUCCESSFULLY\n");
#   81|   	fflush(stdout);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
speech-dispatcher-0.12.1/src/modules/module_main.c:81:9: warning[-Wanalyzer-malloc-leak]: leak of 'msg'
speech-dispatcher-0.12.1/src/modules/module_main.c:51:12: branch_false: following 'false' branch...
speech-dispatcher-0.12.1/src/modules/module_main.c:57:16: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_main.c:58:12: branch_false: following 'false' branch (when the strings are equal)...
speech-dispatcher-0.12.1/src/modules/module_main.c:65:15: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_main.c:66:12: branch_false: following 'false' branch...
speech-dispatcher-0.12.1/src/modules/module_main.c:77:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_main.c:77:12: branch_true: following 'true' branch...
speech-dispatcher-0.12.1/src/modules/module_main.c:78:23: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/module_main.c:78:23: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/module_main.c:81:9: danger: 'msg' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#   79|   	printf("299-%s\n", msg);
#   80|   	printf("299 OK LOADED SUCCESSFULLY\n");
#   81|-> 	fflush(stdout);
#   82|   	free(msg);
#   83|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
speech-dispatcher-0.12.1/src/modules/module_process.c:53:9: warning[-Wanalyzer-malloc-leak]: leak of 'text'
speech-dispatcher-0.12.1/src/modules/module_process.c:532:5: enter_function: entry to 'module_process'
speech-dispatcher-0.12.1/src/modules/module_process.c:536:20: branch_false: following 'false' branch...
speech-dispatcher-0.12.1/src/modules/module_process.c:539:22: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_process.c:539:20: branch_true: following 'true' branch (when the strings are equal)...
speech-dispatcher-0.12.1/src/modules/module_process.c:540:25: call_function: inlined call to 'cmd_speak_text' from 'module_process'
#   51|   	pthread_mutex_unlock(&module_stdout_mutex);
#   52|   	va_end(ap);
#   53|-> 	fflush(stdout);
#   54|   }
#   55|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
speech-dispatcher-0.12.1/src/modules/module_process.c:193:30: warning[-Wanalyzer-malloc-leak]: leak of 'text'
speech-dispatcher-0.12.1/src/modules/module_process.c:532:5: enter_function: entry to 'module_process'
speech-dispatcher-0.12.1/src/modules/module_process.c:536:20: branch_false: following 'false' branch...
speech-dispatcher-0.12.1/src/modules/module_process.c:539:22: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_process.c:539:20: branch_true: following 'true' branch (when the strings are equal)...
speech-dispatcher-0.12.1/src/modules/module_process.c:540:25: call_function: inlined call to 'cmd_speak_text' from 'module_process'
#  191|   
#  192|   	while (1) {
#  193|-> 		char *line = module_readline(fd, 1);
#  194|   		int offset = 0;
#  195|   		if (!line) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def117]
speech-dispatcher-0.12.1/src/modules/module_process.c:252:22: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'text' where non-null expected
speech-dispatcher-0.12.1/src/modules/module_process.c:532:5: enter_function: entry to 'module_process'
speech-dispatcher-0.12.1/src/modules/module_process.c:536:20: branch_false: following 'false' branch...
speech-dispatcher-0.12.1/src/modules/module_process.c:539:22: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_process.c:539:20: branch_false: following 'false' branch (when the strings are non-equal)...
speech-dispatcher-0.12.1/src/modules/module_process.c:542:27: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_process.c:542:25: branch_false: following 'false' branch (when the strings are non-equal)...
speech-dispatcher-0.12.1/src/modules/module_process.c:545:27: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_process.c:545:25: branch_true: following 'true' branch (when the strings are equal)...
speech-dispatcher-0.12.1/src/modules/module_process.c:546:25: call_function: inlined call to 'cmd_speak_char' from 'module_process'
#  250|   
#  251|   	if (msgtype == SPD_MSGTYPE_KEY || msgtype == SPD_MSGTYPE_CHAR) {
#  252|-> 		if (!strcmp(text, "space")) {
#  253|   			free(text);
#  254|   			text = strdup(" ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
speech-dispatcher-0.12.1/src/modules/module_process.c:264:17: warning[-Wanalyzer-malloc-leak]: leak of 'text'
speech-dispatcher-0.12.1/src/modules/module_process.c:532:5: enter_function: entry to 'module_process'
speech-dispatcher-0.12.1/src/modules/module_process.c:536:20: branch_false: following 'false' branch...
speech-dispatcher-0.12.1/src/modules/module_process.c:539:22: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_process.c:539:20: branch_false: following 'false' branch (when the strings are non-equal)...
speech-dispatcher-0.12.1/src/modules/module_process.c:542:27: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_process.c:542:25: branch_false: following 'false' branch (when the strings are non-equal)...
speech-dispatcher-0.12.1/src/modules/module_process.c:545:27: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/module_process.c:545:25: branch_true: following 'true' branch (when the strings are equal)...
speech-dispatcher-0.12.1/src/modules/module_process.c:546:25: call_function: inlined call to 'cmd_speak_char' from 'module_process'
#  262|   #pragma weak module_speak
#  263|   	if (module_speak_sync) {
#  264|-> 		module_speak_sync(text, text_len, msgtype);
#  265|   	} else {
#  266|   		pthread_mutex_lock(&module_stdout_mutex);

Error: CPPCHECK_WARNING (CWE-476): [#def119]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:118: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  116|   	SPDVoice **ret = malloc(2 * sizeof(*ret));
#  117|   
#  118|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#  119|   	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:118:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:116:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/openjtalk.c:118:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  116|   	SPDVoice **ret = malloc(2 * sizeof(*ret));
#  117|   
#  118|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#  119|   	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");

Error: CPPCHECK_WARNING (CWE-476): [#def121]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  117|   
#  118|   	ret[0] = malloc(sizeof(*(ret[0])));
#  119|-> 	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");
#  121|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:119:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:118:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/openjtalk.c:119:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  117|   
#  118|   	ret[0] = malloc(sizeof(*(ret[0])));
#  119|-> 	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");
#  121|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def123]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  118|   	ret[0] = malloc(sizeof(*(ret[0])));
#  119|   	ret[0]->name = strdup("Default");
#  120|-> 	ret[0]->language = strdup("ja");
#  121|   	ret[0]->variant = NULL;
#  122|   

Error: CPPCHECK_WARNING (CWE-476): [#def124]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:121: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  119|   	ret[0]->name = strdup("Default");
#  120|   	ret[0]->language = strdup("ja");
#  121|-> 	ret[0]->variant = NULL;
#  122|   
#  123|   	ret[1] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def125]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:123: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  121|   	ret[0]->variant = NULL;
#  122|   
#  123|-> 	ret[1] = NULL;
#  124|   
#  125|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(cmd, "w")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: danger: ‘popen(cmd, "w")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  169|   	/* wait for finish */
#  170|   	int status = pclose(oj_fp);
#  171|-> 	if (status != 0) {
#  172|   		DBG("open_jtalk exited with non-zero code");
#  173|   		goto TEMPLATE_FINISH;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  191|   		goto TEMPLATE_FINISH;
#  192|   	}
#  193|-> 	DBG("opened wav file");
#  194|   
#  195|   	fseek(audio_fp, WAV_START_BITS_PER_SAMPLE, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  191|   		goto TEMPLATE_FINISH;
#  192|   	}
#  193|-> 	DBG("opened wav file");
#  194|   
#  195|   	fseek(audio_fp, WAV_START_BITS_PER_SAMPLE, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def129]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:195:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:195:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  193|   	DBG("opened wav file");
#  194|   
#  195|-> 	fseek(audio_fp, WAV_START_BITS_PER_SAMPLE, SEEK_SET);
#  196|   	size_t ret = fread(&track.bits, 2, 1, audio_fp);
#  197|   	if (ret != 1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:195:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:195:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  193|   	DBG("opened wav file");
#  194|   
#  195|-> 	fseek(audio_fp, WAV_START_BITS_PER_SAMPLE, SEEK_SET);
#  196|   	size_t ret = fread(&track.bits, 2, 1, audio_fp);
#  197|   	if (ret != 1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:198:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:198:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:198:17: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  196|   	size_t ret = fread(&track.bits, 2, 1, audio_fp);
#  197|   	if (ret != 1) {
#  198|-> 		DBG("failed to read track.bits");
#  199|   		goto FP_FINISH;
#  200|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:198:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:198:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:198:17: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  196|   	size_t ret = fread(&track.bits, 2, 1, audio_fp);
#  197|   	if (ret != 1) {
#  198|-> 		DBG("failed to read track.bits");
#  199|   		goto FP_FINISH;
#  200|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def133]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  199|   		goto FP_FINISH;
#  200|   	}
#  201|-> 	DBG("read track.bits");
#  202|   
#  203|   	fseek(audio_fp, WAV_START_NUM_CHANNELS, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  199|   		goto FP_FINISH;
#  200|   	}
#  201|-> 	DBG("read track.bits");
#  202|   
#  203|   	fseek(audio_fp, WAV_START_NUM_CHANNELS, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:203:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:203:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
#  201|   	DBG("read track.bits");
#  202|   
#  203|-> 	fseek(audio_fp, WAV_START_NUM_CHANNELS, SEEK_SET);
#  204|   	ret = fread(&track.num_channels, 2, 1, audio_fp);
#  205|   	if (ret != 1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:203:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:203:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
#  201|   	DBG("read track.bits");
#  202|   
#  203|-> 	fseek(audio_fp, WAV_START_NUM_CHANNELS, SEEK_SET);
#  204|   	ret = fread(&track.num_channels, 2, 1, audio_fp);
#  205|   	if (ret != 1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def137]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:206:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:206:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:206:17: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
#  204|   	ret = fread(&track.num_channels, 2, 1, audio_fp);
#  205|   	if (ret != 1) {
#  206|-> 		DBG("failed to read track.num_channels");
#  207|   		goto FP_FINISH;
#  208|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:206:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:206:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:206:17: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
#  204|   	ret = fread(&track.num_channels, 2, 1, audio_fp);
#  205|   	if (ret != 1) {
#  206|-> 		DBG("failed to read track.num_channels");
#  207|   		goto FP_FINISH;
#  208|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
#  207|   		goto FP_FINISH;
#  208|   	}
#  209|-> 	DBG("read track.num_channels");
#  210|   
#  211|   	fseek(audio_fp, WAV_START_SAMPLE_RATE, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
#  207|   		goto FP_FINISH;
#  208|   	}
#  209|-> 	DBG("read track.num_channels");
#  210|   
#  211|   	fseek(audio_fp, WAV_START_SAMPLE_RATE, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:211:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:211:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
#  209|   	DBG("read track.num_channels");
#  210|   
#  211|-> 	fseek(audio_fp, WAV_START_SAMPLE_RATE, SEEK_SET);
#  212|   	ret = fread(&track.sample_rate, 4, 1, audio_fp);
#  213|   	if (ret != 1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:211:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:211:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
#  209|   	DBG("read track.num_channels");
#  210|   
#  211|-> 	fseek(audio_fp, WAV_START_SAMPLE_RATE, SEEK_SET);
#  212|   	ret = fread(&track.sample_rate, 4, 1, audio_fp);
#  213|   	if (ret != 1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def143]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:214:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:214:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:214:17: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
#  212|   	ret = fread(&track.sample_rate, 4, 1, audio_fp);
#  213|   	if (ret != 1) {
#  214|-> 		DBG("failed to read track.sample_rate");
#  215|   		goto FP_FINISH;
#  216|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:214:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:214:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:214:17: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
#  212|   	ret = fread(&track.sample_rate, 4, 1, audio_fp);
#  213|   	if (ret != 1) {
#  214|-> 		DBG("failed to read track.sample_rate");
#  215|   		goto FP_FINISH;
#  216|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def145]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
#  215|   		goto FP_FINISH;
#  216|   	}
#  217|-> 	DBG("read track.sample_rate");
#  218|   
#  219|   	fseek(audio_fp, WAV_START_SIZE_OF_SAMPLES, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
#  215|   		goto FP_FINISH;
#  216|   	}
#  217|-> 	DBG("read track.sample_rate");
#  218|   
#  219|   	fseek(audio_fp, WAV_START_SIZE_OF_SAMPLES, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def147]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:219:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:219:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8)
#  217|   	DBG("read track.sample_rate");
#  218|   
#  219|-> 	fseek(audio_fp, WAV_START_SIZE_OF_SAMPLES, SEEK_SET);
#  220|   	ret = fread(&track.num_samples, 4, 1, audio_fp);
#  221|   	if (ret != 1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:219:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:219:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
#  217|   	DBG("read track.sample_rate");
#  218|   
#  219|-> 	fseek(audio_fp, WAV_START_SIZE_OF_SAMPLES, SEEK_SET);
#  220|   	ret = fread(&track.num_samples, 4, 1, audio_fp);
#  221|   	if (ret != 1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def149]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:222:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:222:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:222:17: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8)
#  220|   	ret = fread(&track.num_samples, 4, 1, audio_fp);
#  221|   	if (ret != 1) {
#  222|-> 		DBG("failed to read track.num_samples");
#  223|   		goto FP_FINISH;
#  224|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:222:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:222:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:222:17: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/8)
#  220|   	ret = fread(&track.num_samples, 4, 1, audio_fp);
#  221|   	if (ret != 1) {
#  222|-> 		DBG("failed to read track.num_samples");
#  223|   		goto FP_FINISH;
#  224|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def151]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:227:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:227:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/8)
#  225|   	track.num_samples =
#  226|   	    track.num_samples / (track.num_channels) / (track.bits / 8);
#  227|-> 	DBG("read track.num_samples");
#  228|   	DBG("bits: %d num_channels: %d sample_rate: %d num_samples: %d",
#  229|   	    track.bits, track.num_channels, track.sample_rate,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:227:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:227:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
#  225|   	track.num_samples =
#  226|   	    track.num_samples / (track.num_channels) / (track.bits / 8);
#  227|-> 	DBG("read track.num_samples");
#  228|   	DBG("bits: %d num_channels: %d sample_rate: %d num_samples: %d",
#  229|   	    track.bits, track.num_channels, track.sample_rate,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def153]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:228:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:228:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/8)
#  226|   	    track.num_samples / (track.num_channels) / (track.bits / 8);
#  227|   	DBG("read track.num_samples");
#  228|-> 	DBG("bits: %d num_channels: %d sample_rate: %d num_samples: %d",
#  229|   	    track.bits, track.num_channels, track.sample_rate,
#  230|   	    track.num_samples);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:228:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:228:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/8)
#  226|   	    track.num_samples / (track.num_channels) / (track.bits / 8);
#  227|   	DBG("read track.num_samples");
#  228|-> 	DBG("bits: %d num_channels: %d sample_rate: %d num_samples: %d",
#  229|   	    track.bits, track.num_channels, track.sample_rate,
#  230|   	    track.num_samples);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def155]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:232:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:232:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/8)
#  230|   	    track.num_samples);
#  231|   
#  232|-> 	fseek(audio_fp, WAV_START_SAMPLES, SEEK_SET);
#  233|   	track.samples =
#  234|   	    malloc(track.num_samples * track.num_channels * track.bits / 8);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:232:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/8)
#  230|   	    track.num_samples);
#  231|   
#  232|-> 	fseek(audio_fp, WAV_START_SAMPLES, SEEK_SET);
#  233|   	track.samples =
#  234|   	    malloc(track.num_samples * track.num_channels * track.bits / 8);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def157]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:234:13: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘<unknown> * track.bits / 8’ as allocation size without upper-bounds checking
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:234:13: danger: use of attacker-controlled value ‘<unknown> * track.bits / 8’ as allocation size without upper-bounds checking
#  232|   	fseek(audio_fp, WAV_START_SAMPLES, SEEK_SET);
#  233|   	track.samples =
#  234|-> 	    malloc(track.num_samples * track.num_channels * track.bits / 8);
#  235|   	ret =
#  236|   	    fread(track.samples, track.bits / 8,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def158]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/8)
#  237|   		  track.num_samples * track.num_channels, audio_fp);
#  238|   	if (ret != track.num_samples * track.num_channels) {
#  239|-> 		DBG("failed to read track.samples");
#  240|   		free(track.samples);
#  241|   		goto FP_FINISH;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/8)
#  237|   		  track.num_samples * track.num_channels, audio_fp);
#  238|   	if (ret != track.num_samples * track.num_channels) {
#  239|-> 		DBG("failed to read track.samples");
#  240|   		free(track.samples);
#  241|   		goto FP_FINISH;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘track.samples’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:234:13: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:239:17: danger: ‘track.samples’ leaks here; was allocated at [(19)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/18)
#  237|   		  track.num_samples * track.num_channels, audio_fp);
#  238|   	if (ret != track.num_samples * track.num_channels) {
#  239|-> 		DBG("failed to read track.samples");
#  240|   		free(track.samples);
#  241|   		goto FP_FINISH;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/8)
#  241|   		goto FP_FINISH;
#  242|   	}
#  243|-> 	DBG("read track.samples");
#  244|   
#  245|   	module_tts_output_server(&track, format);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/8)
#  241|   		goto FP_FINISH;
#  242|   	}
#  243|-> 	DBG("read track.samples");
#  244|   
#  245|   	module_tts_output_server(&track, format);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: warning[-Wanalyzer-malloc-leak]: leak of ‘track.samples’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:234:13: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: danger: ‘track.samples’ leaks here; was allocated at [(19)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/18)
#  241|   		goto FP_FINISH;
#  242|   	}
#  243|-> 	DBG("read track.samples");
#  244|   
#  245|   	module_tts_output_server(&track, format);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def164]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:245:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_resource: opened here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:245:9: danger: ‘fopen(&template, "rb")’ leaks here; was opened at [(9)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/8)
#  243|   	DBG("read track.samples");
#  244|   
#  245|-> 	module_tts_output_server(&track, format);
#  246|   
#  247|   	free(track.samples);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:245:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&template, "rb")’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:188:26: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:245:9: danger: ‘fopen(&template, "rb")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/8)
#  243|   	DBG("read track.samples");
#  244|   
#  245|-> 	module_tts_output_server(&track, format);
#  246|   
#  247|   	free(track.samples);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
speech-dispatcher-0.12.1/src/modules/openjtalk.c:245:9: warning[-Wanalyzer-malloc-leak]: leak of ‘track.samples’
speech-dispatcher-0.12.1/src/modules/openjtalk.c:142:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:148:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:152:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:160:23: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:162:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:167:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:171:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:177:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:189:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:193:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:197:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:201:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:205:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:209:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:213:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:217:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:221:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:226:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:234:13: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:238:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/modules/openjtalk.c:243:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/modules/openjtalk.c:245:9: danger: ‘track.samples’ leaks here; was allocated at [(19)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/18)
#  243|   	DBG("read track.samples");
#  244|   
#  245|-> 	module_tts_output_server(&track, format);
#  246|   
#  247|   	free(track.samples);

Error: CPPCHECK_WARNING (CWE-476): [#def167]
speech-dispatcher-0.12.1/src/modules/skeleton0.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   65|   	SPDVoice **ret = malloc(2*sizeof(*ret));
#   66|   
#   67|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   68|   	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
speech-dispatcher-0.12.1/src/modules/skeleton0.c:67:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.1/src/modules/skeleton0.c:65:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0.c:67:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   65|   	SPDVoice **ret = malloc(2*sizeof(*ret));
#   66|   
#   67|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   68|   	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");

Error: CPPCHECK_WARNING (CWE-476): [#def169]
speech-dispatcher-0.12.1/src/modules/skeleton0.c:68: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   66|   
#   67|   	ret[0] = malloc(sizeof(*(ret[0])));
#   68|-> 	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");
#   70|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
speech-dispatcher-0.12.1/src/modules/skeleton0.c:68:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0.c:67:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0.c:68:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   66|   
#   67|   	ret[0] = malloc(sizeof(*(ret[0])));
#   68|-> 	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");
#   70|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def171]
speech-dispatcher-0.12.1/src/modules/skeleton0.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   67|   	ret[0] = malloc(sizeof(*(ret[0])));
#   68|   	ret[0]->name = strdup("foo");
#   69|-> 	ret[0]->language = strdup("eo");
#   70|   	ret[0]->variant = NULL;
#   71|   

Error: CPPCHECK_WARNING (CWE-476): [#def172]
speech-dispatcher-0.12.1/src/modules/skeleton0.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   68|   	ret[0]->name = strdup("foo");
#   69|   	ret[0]->language = strdup("eo");
#   70|-> 	ret[0]->variant = NULL;
#   71|   
#   72|   	ret[1] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def173]
speech-dispatcher-0.12.1/src/modules/skeleton0.c:72: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   70|   	ret[0]->variant = NULL;
#   71|   
#   72|-> 	ret[1] = NULL;
#   73|   
#   74|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def174]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   95|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   96|   
#   97|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def175]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:97:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:95:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:97:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   95|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   96|   
#   97|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");

Error: CPPCHECK_WARNING (CWE-476): [#def176]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   96|   
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:98:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:97:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:98:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   96|   
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def178]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|-> 	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;
#  101|   

Error: CPPCHECK_WARNING (CWE-476): [#def179]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|-> 	ret[0]->variant = NULL;
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));

Error: CPPCHECK_WARNING (CWE-476): [#def180]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  100|   	ret[0]->variant = NULL;
#  101|   
#  102|-> 	ret[1] = malloc(sizeof(*(ret[0])));
#  103|   	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");

Error: CPPCHECK_WARNING (CWE-476): [#def181]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|-> 	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:103:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:102:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:103:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|-> 	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def183]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|   	ret[1]->name = strdup("French (France)");
#  104|-> 	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;
#  106|   

Error: CPPCHECK_WARNING (CWE-476): [#def184]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  103|   	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|-> 	ret[1]->variant = NULL;
#  106|   
#  107|   	ret[2] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def185]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async-server.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  105|   	ret[1]->variant = NULL;
#  106|   
#  107|-> 	ret[2] = NULL;
#  108|   
#  109|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def186]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:96: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   94|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   95|   
#   96|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   97|   	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:96:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:94:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:96:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   94|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   95|   
#   96|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   97|   	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");

Error: CPPCHECK_WARNING (CWE-476): [#def188]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   95|   
#   96|   	ret[0] = malloc(sizeof(*(ret[0])));
#   97|-> 	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");
#   99|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:97:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:96:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:97:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   95|   
#   96|   	ret[0] = malloc(sizeof(*(ret[0])));
#   97|-> 	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");
#   99|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def190]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   96|   	ret[0] = malloc(sizeof(*(ret[0])));
#   97|   	ret[0]->name = strdup("English (America)");
#   98|-> 	ret[0]->language = strdup("en");
#   99|   	ret[0]->variant = NULL;
#  100|   

Error: CPPCHECK_WARNING (CWE-476): [#def191]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   97|   	ret[0]->name = strdup("English (America)");
#   98|   	ret[0]->language = strdup("en");
#   99|-> 	ret[0]->variant = NULL;
#  100|   
#  101|   	ret[1] = malloc(sizeof(*(ret[0])));

Error: CPPCHECK_WARNING (CWE-476): [#def192]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   99|   	ret[0]->variant = NULL;
#  100|   
#  101|-> 	ret[1] = malloc(sizeof(*(ret[0])));
#  102|   	ret[1]->name = strdup("French (France)");
#  103|   	ret[1]->language = strdup("fr");

Error: CPPCHECK_WARNING (CWE-476): [#def193]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  100|   
#  101|   	ret[1] = malloc(sizeof(*(ret[0])));
#  102|-> 	ret[1]->name = strdup("French (France)");
#  103|   	ret[1]->language = strdup("fr");
#  104|   	ret[1]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:102:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:101:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:102:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  100|   
#  101|   	ret[1] = malloc(sizeof(*(ret[0])));
#  102|-> 	ret[1]->name = strdup("French (France)");
#  103|   	ret[1]->language = strdup("fr");
#  104|   	ret[1]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def195]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  101|   	ret[1] = malloc(sizeof(*(ret[0])));
#  102|   	ret[1]->name = strdup("French (France)");
#  103|-> 	ret[1]->language = strdup("fr");
#  104|   	ret[1]->variant = NULL;
#  105|   

Error: CPPCHECK_WARNING (CWE-476): [#def196]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  102|   	ret[1]->name = strdup("French (France)");
#  103|   	ret[1]->language = strdup("fr");
#  104|-> 	ret[1]->variant = NULL;
#  105|   
#  106|   	ret[2] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def197]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-async.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  104|   	ret[1]->variant = NULL;
#  105|   
#  106|-> 	ret[2] = NULL;
#  107|   
#  108|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def198]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   95|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   96|   
#   97|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:97:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:95:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:97:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   95|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   96|   
#   97|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");

Error: CPPCHECK_WARNING (CWE-476): [#def200]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   96|   
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:98:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:97:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:98:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   96|   
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def202]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   97|   	ret[0] = malloc(sizeof(*(ret[0])));
#   98|   	ret[0]->name = strdup("English (America)");
#   99|-> 	ret[0]->language = strdup("en");
#  100|   	ret[0]->variant = NULL;
#  101|   

Error: CPPCHECK_WARNING (CWE-476): [#def203]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   98|   	ret[0]->name = strdup("English (America)");
#   99|   	ret[0]->language = strdup("en");
#  100|-> 	ret[0]->variant = NULL;
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));

Error: CPPCHECK_WARNING (CWE-476): [#def204]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  100|   	ret[0]->variant = NULL;
#  101|   
#  102|-> 	ret[1] = malloc(sizeof(*(ret[0])));
#  103|   	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");

Error: CPPCHECK_WARNING (CWE-476): [#def205]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|-> 	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def206]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:103:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:102:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:103:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  101|   
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|-> 	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def207]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  102|   	ret[1] = malloc(sizeof(*(ret[0])));
#  103|   	ret[1]->name = strdup("French (France)");
#  104|-> 	ret[1]->language = strdup("fr");
#  105|   	ret[1]->variant = NULL;
#  106|   

Error: CPPCHECK_WARNING (CWE-476): [#def208]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  103|   	ret[1]->name = strdup("French (France)");
#  104|   	ret[1]->language = strdup("fr");
#  105|-> 	ret[1]->variant = NULL;
#  106|   
#  107|   	ret[2] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def209]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync-server.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  105|   	ret[1]->variant = NULL;
#  106|   
#  107|-> 	ret[2] = NULL;
#  108|   
#  109|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def210]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   90|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   91|   
#   92|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   93|   	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:92:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:90:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:92:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   90|   	SPDVoice **ret = malloc(3*sizeof(*ret));
#   91|   
#   92|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   93|   	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");

Error: CPPCHECK_WARNING (CWE-476): [#def212]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:93: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   91|   
#   92|   	ret[0] = malloc(sizeof(*(ret[0])));
#   93|-> 	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");
#   95|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def213]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:93:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:92:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:93:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   91|   
#   92|   	ret[0] = malloc(sizeof(*(ret[0])));
#   93|-> 	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");
#   95|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def214]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:94: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   92|   	ret[0] = malloc(sizeof(*(ret[0])));
#   93|   	ret[0]->name = strdup("English (America)");
#   94|-> 	ret[0]->language = strdup("en");
#   95|   	ret[0]->variant = NULL;
#   96|   

Error: CPPCHECK_WARNING (CWE-476): [#def215]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:95: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   93|   	ret[0]->name = strdup("English (America)");
#   94|   	ret[0]->language = strdup("en");
#   95|-> 	ret[0]->variant = NULL;
#   96|   
#   97|   	ret[1] = malloc(sizeof(*(ret[0])));

Error: CPPCHECK_WARNING (CWE-476): [#def216]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   95|   	ret[0]->variant = NULL;
#   96|   
#   97|-> 	ret[1] = malloc(sizeof(*(ret[0])));
#   98|   	ret[1]->name = strdup("French (France)");
#   99|   	ret[1]->language = strdup("fr");

Error: CPPCHECK_WARNING (CWE-476): [#def217]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   96|   
#   97|   	ret[1] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[1]->name = strdup("French (France)");
#   99|   	ret[1]->language = strdup("fr");
#  100|   	ret[1]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:98:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:97:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:98:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   96|   
#   97|   	ret[1] = malloc(sizeof(*(ret[0])));
#   98|-> 	ret[1]->name = strdup("French (France)");
#   99|   	ret[1]->language = strdup("fr");
#  100|   	ret[1]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def219]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   97|   	ret[1] = malloc(sizeof(*(ret[0])));
#   98|   	ret[1]->name = strdup("French (France)");
#   99|-> 	ret[1]->language = strdup("fr");
#  100|   	ret[1]->variant = NULL;
#  101|   

Error: CPPCHECK_WARNING (CWE-476): [#def220]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   98|   	ret[1]->name = strdup("French (France)");
#   99|   	ret[1]->language = strdup("fr");
#  100|-> 	ret[1]->variant = NULL;
#  101|   
#  102|   	ret[2] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def221]
speech-dispatcher-0.12.1/src/modules/skeleton0_espeak-ng-sync.c:102: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  100|   	ret[1]->variant = NULL;
#  101|   
#  102|-> 	ret[2] = NULL;
#  103|   
#  104|   	return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def222]
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:80: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   78|   	SPDVoice **ret = malloc(2*sizeof(*ret));
#   79|   
#   80|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   81|   	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:80:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:78:26: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:80:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   78|   	SPDVoice **ret = malloc(2*sizeof(*ret));
#   79|   
#   80|-> 	ret[0] = malloc(sizeof(*(ret[0])));
#   81|   	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");

Error: CPPCHECK_WARNING (CWE-476): [#def224]
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:81: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   79|   
#   80|   	ret[0] = malloc(sizeof(*(ret[0])));
#   81|-> 	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");
#   83|   	ret[0]->variant = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def225]
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:81:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(24)’
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:80:18: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:81:9: danger: ‘malloc(24)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   79|   
#   80|   	ret[0] = malloc(sizeof(*(ret[0])));
#   81|-> 	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");
#   83|   	ret[0]->variant = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def226]
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:82: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   80|   	ret[0] = malloc(sizeof(*(ret[0])));
#   81|   	ret[0]->name = strdup("foo");
#   82|-> 	ret[0]->language = strdup("eo");
#   83|   	ret[0]->variant = NULL;
#   84|   

Error: CPPCHECK_WARNING (CWE-476): [#def227]
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:83: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   81|   	ret[0]->name = strdup("foo");
#   82|   	ret[0]->language = strdup("eo");
#   83|-> 	ret[0]->variant = NULL;
#   84|   
#   85|   	ret[1] = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def228]
speech-dispatcher-0.12.1/src/modules/skeleton_config.c:85: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#   83|   	ret[0]->variant = NULL;
#   84|   
#   85|-> 	ret[1] = NULL;
#   86|   
#   87|   	return ret;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def229]
speech-dispatcher-0.12.1/src/server/module.c:113:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘s’
speech-dispatcher-0.12.1/src/server/module.c:98:17: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/server/module.c:101:12: branch_false: following ‘false’ branch (when ‘s >= 0’)...
speech-dispatcher-0.12.1/src/server/module.c:108:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/module.c:113:13: danger: ‘s’ leaks here
#  111|   	sin.sin_port = htons(cmd->data.value);
#  112|   
#  113|-> 	if (connect(s, (struct sockaddr *) &sin, sizeof(sin)) < 0)
#  114|   	{
#  115|   		MSG(5, "Could not connect to IPv4 socket: %s", strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
speech-dispatcher-0.12.1/src/server/module.c:151:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(spd_get_path("modules", config_dirname))’
speech-dispatcher-0.12.1/src/server/module.c:129:15: enter_function: entry to ‘detect_generic_modules’
speech-dispatcher-0.12.1/src/server/module.c:139:21: call_function: calling ‘spd_get_path’ from ‘detect_generic_modules’
speech-dispatcher-0.12.1/src/server/module.c:139:21: return_function: returning to ‘detect_generic_modules’ from ‘spd_get_path’
speech-dispatcher-0.12.1/src/server/module.c:142:27: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/module.c:143:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
speech-dispatcher-0.12.1/src/server/module.c:151:33: danger: ‘opendir(spd_get_path("modules", config_dirname))’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  149|   	}
#  150|   
#  151|-> 	while (NULL != (entry = readdir(config_dir))) {
#  152|   		size_t len;
#  153|   		char *file_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
speech-dispatcher-0.12.1/src/server/module.c:276:9: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dirname)’
speech-dispatcher-0.12.1/src/server/module.c:268:27: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/module.c:276:9: danger: ‘opendir(dirname)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  274|   	int sys_ret;
#  275|   
#  276|-> 	MSG(5, "Detecting modules from %s\n", dirname);
#  277|   
#  278|   	if (module_dir == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
speech-dispatcher-0.12.1/src/server/module.c:284:33: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dirname)’
speech-dispatcher-0.12.1/src/server/module.c:268:27: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/module.c:278:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
speech-dispatcher-0.12.1/src/server/module.c:284:33: danger: ‘opendir(dirname)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  282|   	}
#  283|   
#  284|-> 	while (NULL != (entry = readdir(module_dir))) {
#  285|   
#  286|   		if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, ".."))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def233]
speech-dispatcher-0.12.1/src/server/module.c:383:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
speech-dispatcher-0.12.1/src/server/module.c:338:15: enter_function: entry to ‘load_output_module’
speech-dispatcher-0.12.1/src/server/module.c:344:15: release_memory: using NULL here
speech-dispatcher-0.12.1/src/server/module.c:344:15: release_memory: using NULL here
speech-dispatcher-0.12.1/src/server/module.c:344:15: release_memory: using NULL here
speech-dispatcher-0.12.1/src/server/module.c:347:15: release_memory: ‘rep_line’ is NULL
speech-dispatcher-0.12.1/src/server/module.c:355:12: branch_false: following ‘false’ branch (when ‘mod_name’ is non-NULL)...
speech-dispatcher-0.12.1/src/server/module.c:358:35: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/module.c:359:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/module.c:361:18: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/module.c:361:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/module.c:366:24: call_function: inlined call to ‘g_strdup_inline’ from ‘load_output_module’
speech-dispatcher-0.12.1/src/server/module.c:367:9: release_memory: using NULL here
speech-dispatcher-0.12.1/src/server/module.c:368:9: release_memory: using NULL here
speech-dispatcher-0.12.1/src/server/module.c:379:13: release_memory: using NULL here
speech-dispatcher-0.12.1/src/server/module.c:379:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/module.c:382:67: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/module.c:382:36: call_function: calling ‘spd_get_path’ from ‘load_output_module’
speech-dispatcher-0.12.1/src/server/module.c:382:36: return_function: returning to ‘load_output_module’ from ‘spd_get_path’
speech-dispatcher-0.12.1/src/server/module.c:382:17: release_memory: using NULL here
speech-dispatcher-0.12.1/src/server/module.c:383:21: danger: argument 1 (‘spd_get_path(mod_prog,  SpeechdOptions.user_module_dir)’) NULL where non-null expected
#  381|   	} else {
#  382|   		module->filename = (char *)spd_get_path(mod_prog, SpeechdOptions.user_module_dir);
#  383|-> 		if (stat(module->filename, &fileinfo) != 0) {
#  384|   			g_free(module->filename);
#  385|   			module->filename = (char *)spd_get_path(mod_prog, SpeechdOptions.module_dir);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def234]
speech-dispatcher-0.12.1/src/server/set.c:258:30: warning[-Wanalyzer-null-argument]: use of NULL ‘language’ where non-null expected
speech-dispatcher-0.12.1/src/server/set.c:241:5: enter_function: entry to ‘set_language_uid’
speech-dispatcher-0.12.1/src/server/set.c:246:20: call_function: calling ‘get_client_settings_by_uid’ from ‘set_language_uid’
speech-dispatcher-0.12.1/src/server/set.c:246:20: return_function: returning to ‘set_language_uid’ from ‘get_client_settings_by_uid’
speech-dispatcher-0.12.1/src/server/set.c:247:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/set.c:251:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/set.c:251:13: call_function: calling ‘set_param_str’ from ‘set_language_uid’
speech-dispatcher-0.12.1/src/server/set.c:251:13: return_function: returning to ‘set_language_uid’ from ‘set_param_str’
speech-dispatcher-0.12.1/src/server/set.c:255:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/set.c:258:30: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/set.c:258:30: danger: argument 1 (‘language’) NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  256|   		set_output_module_uid(uid, output_module);
#  257|   	} else {
#  258|-> 		char *dash = strchr(language, '-');
#  259|   
#  260|   		if (dash) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def235]
speech-dispatcher-0.12.1/src/server/speechd.c:302:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘server_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:1012:5: enter_function: entry to ‘make_inet_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:1018:25: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/server/speechd.c:1019:12: branch_false: following ‘false’ branch (when ‘server_socket >= 0’)...
speech-dispatcher-0.12.1/src/server/speechd.c:1024:19: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1041:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1047:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1047:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1048:45: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1048:17: call_function: calling ‘MSG’ from ‘make_inet_socket’
#  300|   				va_end(args);
#  301|   				fprintf(logfile, "\n");
#  302|-> 				fflush(logfile);
#  303|   			}
#  304|   			/* Log into debug logfile */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def236]
speech-dispatcher-0.12.1/src/server/speechd.c:302:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
speech-dispatcher-0.12.1/src/server/speechd.c:982:5: enter_function: entry to ‘make_local_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:989:16: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/server/speechd.c:990:12: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
speech-dispatcher-0.12.1/src/server/speechd.c:995:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1000:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1004:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1004:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1005:60: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1005:17: call_function: calling ‘MSG’ from ‘make_local_socket’
#  300|   				va_end(args);
#  301|   				fprintf(logfile, "\n");
#  302|-> 				fflush(logfile);
#  303|   			}
#  304|   			/* Log into debug logfile */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def237]
speech-dispatcher-0.12.1/src/server/speechd.c:310:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘server_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:1012:5: enter_function: entry to ‘make_inet_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:1018:25: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/server/speechd.c:1019:12: branch_false: following ‘false’ branch (when ‘server_socket >= 0’)...
speech-dispatcher-0.12.1/src/server/speechd.c:1024:19: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1041:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1047:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1047:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1048:45: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1048:17: call_function: calling ‘MSG’ from ‘make_inet_socket’
#  308|   				va_end(args);
#  309|   				fprintf(debug_logfile, "\n");
#  310|-> 				fflush(debug_logfile);
#  311|   			}
#  312|   			/* Log also into stderr for loglevel -1 */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def238]
speech-dispatcher-0.12.1/src/server/speechd.c:310:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
speech-dispatcher-0.12.1/src/server/speechd.c:982:5: enter_function: entry to ‘make_local_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:989:16: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/server/speechd.c:990:12: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
speech-dispatcher-0.12.1/src/server/speechd.c:995:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1000:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1004:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1004:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1005:60: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1005:17: call_function: calling ‘MSG’ from ‘make_local_socket’
#  308|   				va_end(args);
#  309|   				fprintf(debug_logfile, "\n");
#  310|-> 				fflush(debug_logfile);
#  311|   			}
#  312|   			/* Log also into stderr for loglevel -1 */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def239]
speech-dispatcher-0.12.1/src/server/speechd.c:318:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘server_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:1012:5: enter_function: entry to ‘make_inet_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:1018:25: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/server/speechd.c:1019:12: branch_false: following ‘false’ branch (when ‘server_socket >= 0’)...
speech-dispatcher-0.12.1/src/server/speechd.c:1024:19: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1041:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1047:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1047:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1048:45: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1049:17: call_function: calling ‘MSG’ from ‘make_inet_socket’
#  316|   				va_end(args);
#  317|   				fprintf(stderr, "\n");
#  318|-> 				fflush(stderr);
#  319|   			}
#  320|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def240]
speech-dispatcher-0.12.1/src/server/speechd.c:318:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
speech-dispatcher-0.12.1/src/server/speechd.c:982:5: enter_function: entry to ‘make_local_socket’
speech-dispatcher-0.12.1/src/server/speechd.c:989:16: acquire_resource: stream socket created here
speech-dispatcher-0.12.1/src/server/speechd.c:990:12: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
speech-dispatcher-0.12.1/src/server/speechd.c:995:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1000:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1004:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1004:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:1005:60: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:1006:17: call_function: calling ‘MSG’ from ‘make_local_socket’
#  316|   				va_end(args);
#  317|   				fprintf(stderr, "\n");
#  318|-> 				fflush(stderr);
#  319|   			}
#  320|   		}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
speech-dispatcher-0.12.1/src/server/speechd.c:905:23: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(SpeechdOptions.pid_file, "r")’
speech-dispatcher-0.12.1/src/server/speechd.c:895:20: acquire_resource: opened here
speech-dispatcher-0.12.1/src/server/speechd.c:896:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:897:26: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:905:23: danger: ‘fopen(SpeechdOptions.pid_file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  903|   
#  904|   		/* If there is a lock, exit, otherwise remove the old file */
#  905|-> 		ret = fcntl(pid_fd, F_GETLK, &lock);
#  906|   		if (ret == -1) {
#  907|   			MSG(-1,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
speech-dispatcher-0.12.1/src/server/speechd.c:905:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(SpeechdOptions.pid_file, "r")’
speech-dispatcher-0.12.1/src/server/speechd.c:895:20: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/speechd.c:896:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:897:26: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:905:23: danger: ‘fopen(SpeechdOptions.pid_file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  903|   
#  904|   		/* If there is a lock, exit, otherwise remove the old file */
#  905|-> 		ret = fcntl(pid_fd, F_GETLK, &lock);
#  906|   		if (ret == -1) {
#  907|   			MSG(-1,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def243]
speech-dispatcher-0.12.1/src/server/speechd.c:906:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(SpeechdOptions.pid_file, "r")’
speech-dispatcher-0.12.1/src/server/speechd.c:895:20: acquire_resource: opened here
speech-dispatcher-0.12.1/src/server/speechd.c:896:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:897:26: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:906:20: danger: ‘fopen(SpeechdOptions.pid_file, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  904|   		/* If there is a lock, exit, otherwise remove the old file */
#  905|   		ret = fcntl(pid_fd, F_GETLK, &lock);
#  906|-> 		if (ret == -1) {
#  907|   			MSG(-1,
#  908|   			    "Can't check lock status of an existing pid file.\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
speech-dispatcher-0.12.1/src/server/speechd.c:906:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(SpeechdOptions.pid_file, "r")’
speech-dispatcher-0.12.1/src/server/speechd.c:895:20: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/speechd.c:896:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:897:26: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:906:20: danger: ‘fopen(SpeechdOptions.pid_file, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  904|   		/* If there is a lock, exit, otherwise remove the old file */
#  905|   		ret = fcntl(pid_fd, F_GETLK, &lock);
#  906|-> 		if (ret == -1) {
#  907|   			MSG(-1,
#  908|   			    "Can't check lock status of an existing pid file.\n");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def245]
speech-dispatcher-0.12.1/src/server/speechd.c:929:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(SpeechdOptions.pid_file, "w")’
speech-dispatcher-0.12.1/src/server/speechd.c:922:20: acquire_resource: opened here
speech-dispatcher-0.12.1/src/server/speechd.c:923:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:928:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:929:9: danger: ‘fopen(SpeechdOptions.pid_file, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  927|   	}
#  928|   	fprintf(pid_file, "%d\n", getpid());
#  929|-> 	fflush(pid_file);
#  930|   
#  931|   	pid_fd = fileno(pid_file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
speech-dispatcher-0.12.1/src/server/speechd.c:929:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(SpeechdOptions.pid_file, "w")’
speech-dispatcher-0.12.1/src/server/speechd.c:922:20: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/speechd.c:923:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:928:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:929:9: danger: ‘fopen(SpeechdOptions.pid_file, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  927|   	}
#  928|   	fprintf(pid_file, "%d\n", getpid());
#  929|-> 	fflush(pid_file);
#  930|   
#  931|   	pid_fd = fileno(pid_file);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def247]
speech-dispatcher-0.12.1/src/server/speechd.c:932:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(SpeechdOptions.pid_file, "w")’
speech-dispatcher-0.12.1/src/server/speechd.c:922:20: acquire_resource: opened here
speech-dispatcher-0.12.1/src/server/speechd.c:923:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:928:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:932:9: danger: ‘fopen(SpeechdOptions.pid_file, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  930|   
#  931|   	pid_fd = fileno(pid_file);
#  932|-> 	lock.l_type = F_WRLCK;
#  933|   	lock.l_whence = SEEK_SET;
#  934|   	lock.l_start = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
speech-dispatcher-0.12.1/src/server/speechd.c:932:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(SpeechdOptions.pid_file, "w")’
speech-dispatcher-0.12.1/src/server/speechd.c:922:20: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/speechd.c:923:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/speechd.c:928:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/speechd.c:932:9: danger: ‘fopen(SpeechdOptions.pid_file, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  930|   
#  931|   	pid_fd = fileno(pid_file);
#  932|-> 	lock.l_type = F_WRLCK;
#  933|   	lock.l_whence = SEEK_SET;
#  934|   	lock.l_start = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
speech-dispatcher-0.12.1/src/server/symbols.c:182:16: warning[-Wanalyzer-malloc-leak]: leak of ‘locale’
speech-dispatcher-0.12.1/src/server/symbols.c:1391:6: enter_function: entry to ‘insert_symbols’
speech-dispatcher-0.12.1/src/server/symbols.c:1396:24: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/symbols.c:1414:12: branch_false: following ‘false’ branch (when ‘dash’ is NULL)...
speech-dispatcher-0.12.1/src/server/symbols.c:1422:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1423:21: call_function: calling ‘process_speech_symbols’ from ‘insert_symbols’
#  180|   static LocaleMap *locale_map_new(GDestroyNotify value_destroy)
#  181|   {
#  182|-> 	return g_hash_table_new_full(g_str_hash, g_str_equal, g_free, value_destroy);
#  183|   }
#  184|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
speech-dispatcher-0.12.1/src/server/symbols.c:188:30: warning[-Wanalyzer-malloc-leak]: leak of ‘locale’
speech-dispatcher-0.12.1/src/server/symbols.c:1391:6: enter_function: entry to ‘insert_symbols’
speech-dispatcher-0.12.1/src/server/symbols.c:1396:24: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/symbols.c:1414:12: branch_false: following ‘false’ branch (when ‘dash’ is NULL)...
speech-dispatcher-0.12.1/src/server/symbols.c:1422:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1423:21: call_function: calling ‘process_speech_symbols’ from ‘insert_symbols’
#  186|   {
#  187|   	if (file) {
#  188|-> 		gchar *str = g_strdup_printf("%s %s", locale, file);
#  189|   		gpointer res = g_hash_table_lookup(map, str);
#  190|   		g_free(str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
speech-dispatcher-0.12.1/src/server/symbols.c:193:24: warning[-Wanalyzer-malloc-leak]: leak of ‘locale’
speech-dispatcher-0.12.1/src/server/symbols.c:1391:6: enter_function: entry to ‘insert_symbols’
speech-dispatcher-0.12.1/src/server/symbols.c:1396:24: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/symbols.c:1414:12: branch_false: following ‘false’ branch (when ‘dash’ is NULL)...
speech-dispatcher-0.12.1/src/server/symbols.c:1422:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1423:21: call_function: calling ‘process_speech_symbols’ from ‘insert_symbols’
#  191|   		return res;
#  192|   	} else {
#  193|-> 		return g_hash_table_lookup(map, locale);
#  194|   	}
#  195|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
speech-dispatcher-0.12.1/src/server/symbols.c:224:25: warning[-Wanalyzer-malloc-leak]: leak of ‘locale’
speech-dispatcher-0.12.1/src/server/symbols.c:1391:6: enter_function: entry to ‘insert_symbols’
speech-dispatcher-0.12.1/src/server/symbols.c:1396:24: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/symbols.c:1414:12: branch_false: following ‘false’ branch (when ‘dash’ is NULL)...
speech-dispatcher-0.12.1/src/server/symbols.c:1422:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1423:21: call_function: calling ‘process_speech_symbols’ from ‘insert_symbols’
#  222|   		}
#  223|   		if (value) {
#  224|-> 			g_free(l);
#  225|   			return value;
#  226|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
speech-dispatcher-0.12.1/src/server/symbols.c:317:15: warning[-Wanalyzer-malloc-leak]: leak of ‘tags’
speech-dispatcher-0.12.1/src/server/symbols.c:309:16: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/symbols.c:317:15: danger: ‘tags’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  315|   	ntags = 0;
#  316|   
#  317|-> 	str = g_string_sized_new(strlen(text));
#  318|   
#  319|   	for (cur = text; *cur; cur++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
speech-dispatcher-0.12.1/src/server/symbols.c:329:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tags’
speech-dispatcher-0.12.1/src/server/symbols.c:309:16: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/server/symbols.c:319:26: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/symbols.c:320:24: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:322:20: branch_true: following ‘true’ branch (when ‘in_tag == 0’)...
speech-dispatcher-0.12.1/src/server/symbols.c:323:28: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:323:28: branch_true: following ‘true’ branch (when ‘c == 60’)...
speech-dispatcher-0.12.1/src/server/symbols.c:327:36: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:327:36: branch_true: following ‘true’ branch (when ‘filling_tag == 0’)...
speech-dispatcher-0.12.1/src/server/symbols.c:329:45: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:329:41: danger: ‘tags + (long unsigned int)ntags * 32’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  327|   				if (!filling_tag) {
#  328|   					/* Note the tags position in the text */
#  329|-> 					tags[ntags].pos = str->len;
#  330|   					/* A priori only deferrable tags */
#  331|   					tags[ntags].deferrable = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
speech-dispatcher-0.12.1/src/server/symbols.c:338:60: warning[-Wanalyzer-malloc-leak]: leak of ‘tags’
speech-dispatcher-0.12.1/src/server/symbols.c:1300:15: enter_function: entry to ‘speech_symbols_processor_process_text’
speech-dispatcher-0.12.1/src/server/symbols.c:1308:12: branch_true: following ‘true’ branch (when ‘ssml_mode == 1’)...
speech-dispatcher-0.12.1/src/server/symbols.c:1309:24: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1309:24: call_function: calling ‘escape_ssml_text’ from ‘speech_symbols_processor_process_text’
#  336|   				if (filling_tag) {
#  337|   					/* Some text, dump the tags and switch to text */
#  338|-> 					tags[ntags].tags = g_strndup(curtag, cur - curtag);
#  339|   					ntags++;
#  340|   					filling_tag = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
speech-dispatcher-0.12.1/src/server/symbols.c:403:36: warning[-Wanalyzer-malloc-leak]: leak of ‘tags’
speech-dispatcher-0.12.1/src/server/symbols.c:1300:15: enter_function: entry to ‘speech_symbols_processor_process_text’
speech-dispatcher-0.12.1/src/server/symbols.c:1308:12: branch_true: following ‘true’ branch (when ‘ssml_mode == 1’)...
speech-dispatcher-0.12.1/src/server/symbols.c:1309:24: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1309:24: call_function: calling ‘escape_ssml_text’ from ‘speech_symbols_processor_process_text’
#  401|   	/* Trailing tags content */
#  402|   	if (filling_tag) {
#  403|-> 		tags[ntags].tags = g_strndup(curtag, cur - curtag);
#  404|   		ntags++;
#  405|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def257]
speech-dispatcher-0.12.1/src/server/symbols.c:670:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
speech-dispatcher-0.12.1/src/server/symbols.c:661:14: acquire_resource: opened here
speech-dispatcher-0.12.1/src/server/symbols.c:662:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/symbols.c:668:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:668:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/symbols.c:670:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:670:17: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  668|   	if (fread(bom, sizeof *bom, sizeof bom, fp) != sizeof bom ||
#  669|   	    bom[0] != 0xEF || bom[1] != 0xBB || bom[2] != 0xBF)
#  670|-> 		fseek(fp, 0, SEEK_SET);
#  671|   
#  672|   	while (getline(&line, &n, fp) >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
speech-dispatcher-0.12.1/src/server/symbols.c:670:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
speech-dispatcher-0.12.1/src/server/symbols.c:661:14: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/symbols.c:662:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/symbols.c:668:13: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:668:12: branch_true: following ‘true’ branch...
speech-dispatcher-0.12.1/src/server/symbols.c:670:17: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:670:17: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  668|   	if (fread(bom, sizeof *bom, sizeof bom, fp) != sizeof bom ||
#  669|   	    bom[0] != 0xEF || bom[1] != 0xBB || bom[2] != 0xBF)
#  670|-> 		fseek(fp, 0, SEEK_SET);
#  671|   
#  672|   	while (getline(&line, &n, fp) >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def259]
speech-dispatcher-0.12.1/src/server/symbols.c:1288:43: warning[-Wanalyzer-null-argument]: use of NULL ‘capture’ where non-null expected
speech-dispatcher-0.12.1/src/server/symbols.c:1130:12: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/symbols.c:1132:31: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1132:19: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/symbols.c:1134:31: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1134:19: branch_false: following ‘false’ branch...
speech-dispatcher-0.12.1/src/server/symbols.c:1140:22: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1189:12: branch_false: following ‘false’ branch (when ‘deferrable != 0’)...
 branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1212:12: branch_false: following ‘false’ branch (when ‘captured_group != 0’)...
speech-dispatcher-0.12.1/src/server/symbols.c:1215:19: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1215:19: branch_false: following ‘false’ branch (when ‘captured_group != 1’)...
speech-dispatcher-0.12.1/src/server/symbols.c:1235:20: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1235:20: branch_false: following ‘false’ branch (when ‘captured_group != 2’)...
speech-dispatcher-0.12.1/src/server/symbols.c:1242:25: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1246:20: branch_true: following ‘true’ branch (when ‘sym’ is NULL)...
speech-dispatcher-0.12.1/src/server/symbols.c:1247:25: branch_true: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1288:43: danger: argument 1 (‘capture’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1286|   out:
# 1287|   	/* content has grown (or shrunk) by this amount */
# 1288|-> 	shift = (result->len - prevlen) - strlen(capture);
# 1289|   
# 1290|   	if (nexttag < ssp->ntags)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def260]
speech-dispatcher-0.12.1/src/server/symbols.c:1413:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locale’ where non-null expected
speech-dispatcher-0.12.1/src/server/symbols.c:1396:24: acquire_memory: this call could return NULL
speech-dispatcher-0.12.1/src/server/symbols.c:1413:16: danger: argument 1 (‘locale’) from [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
# 1411|   		level = SYMLVL_CHAR;
# 1412|   
# 1413|-> 	dash = strchr(locale, '-');
# 1414|   	if (dash)
# 1415|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
speech-dispatcher-0.12.1/src/server/symbols.c:1422:9: warning[-Wanalyzer-malloc-leak]: leak of ‘locale’
speech-dispatcher-0.12.1/src/server/symbols.c:1396:24: acquire_memory: allocated here
speech-dispatcher-0.12.1/src/server/symbols.c:1414:12: branch_false: following ‘false’ branch (when ‘dash’ is NULL)...
speech-dispatcher-0.12.1/src/server/symbols.c:1422:9: branch_false: ...to here
speech-dispatcher-0.12.1/src/server/symbols.c:1422:9: danger: ‘locale’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 1420|   	}
# 1421|   
# 1422|-> 	MSG2(5, "symbols", "processing at level %d, supporting level %d", level, support_level);
# 1423|   	processed = process_speech_symbols(locale,
# 1424|   		msg->buf, level, support_level, msg->settings.ssml_mode);

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-156.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namespeech-dispatcher-0.12.1-5.fc44
store-results-to/tmp/tmp6bx7wme4/speech-dispatcher-0.12.1-5.fc44.tar.xz
time-created2025-10-28 20:29:23
time-finished2025-10-28 20:31:19
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp6bx7wme4/speech-dispatcher-0.12.1-5.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp6bx7wme4/speech-dispatcher-0.12.1-5.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9