alsa-lib-1.2.15.1-1.fc44

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
alsa-lib-1.2.15.1/aserver/aserver.c:881: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  879|    found:
#  880|   	client = calloc(1, sizeof(*client));
#  881|-> 	client->local = 0;
#  882|   	client->poll_fd = pdata->fd;
#  883|   	client->ctrl_fd = waiter->fd;

Error: CPPCHECK_WARNING (CWE-476): [#def2]
alsa-lib-1.2.15.1/aserver/aserver.c:882: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  880|   	client = calloc(1, sizeof(*client));
#  881|   	client->local = 0;
#  882|-> 	client->poll_fd = pdata->fd;
#  883|   	client->ctrl_fd = waiter->fd;
#  884|   	add_waiter(client->ctrl_fd, POLLIN | POLLHUP, client_ctrl_handler, client);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
alsa-lib-1.2.15.1/aserver/aserver.c:882:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘client’
alsa-lib-1.2.15.1/aserver/aserver.c:843:12: enter_function: entry to ‘inet_pending_handler’
alsa-lib-1.2.15.1/aserver/aserver.c:863:9: call_function: calling ‘del_waiter’ from ‘inet_pending_handler’
alsa-lib-1.2.15.1/aserver/aserver.c:863:9: return_function: returning to ‘inet_pending_handler’ from ‘del_waiter’
alsa-lib-1.2.15.1/aserver/aserver.c:864:12: branch_false: following ‘false’ branch (when ‘remove == 0’)...
alsa-lib-1.2.15.1/aserver/aserver.c:871:9: branch_false: ...to here
alsa-lib-1.2.15.1/aserver/aserver.c:871:9: branch_true: following ‘true’ branch...
alsa-lib-1.2.15.1/aserver/aserver.c:873:21: branch_true: ...to here
alsa-lib-1.2.15.1/aserver/aserver.c:880:18: acquire_memory: this call could return NULL
alsa-lib-1.2.15.1/aserver/aserver.c:882:9: danger: ‘client’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  880|   	client = calloc(1, sizeof(*client));
#  881|   	client->local = 0;
#  882|-> 	client->poll_fd = pdata->fd;
#  883|   	client->ctrl_fd = waiter->fd;
#  884|   	add_waiter(client->ctrl_fd, POLLIN | POLLHUP, client_ctrl_handler, client);

Error: CPPCHECK_WARNING (CWE-476): [#def4]
alsa-lib-1.2.15.1/aserver/aserver.c:883: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  881|   	client->local = 0;
#  882|   	client->poll_fd = pdata->fd;
#  883|-> 	client->ctrl_fd = waiter->fd;
#  884|   	add_waiter(client->ctrl_fd, POLLIN | POLLHUP, client_ctrl_handler, client);
#  885|   	add_waiter(client->poll_fd, POLLHUP, client_poll_handler, client);

Error: CPPCHECK_WARNING (CWE-476): [#def5]
alsa-lib-1.2.15.1/aserver/aserver.c:884: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  882|   	client->poll_fd = pdata->fd;
#  883|   	client->ctrl_fd = waiter->fd;
#  884|-> 	add_waiter(client->ctrl_fd, POLLIN | POLLHUP, client_ctrl_handler, client);
#  885|   	add_waiter(client->poll_fd, POLLHUP, client_poll_handler, client);
#  886|   	client->open = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def6]
alsa-lib-1.2.15.1/aserver/aserver.c:885: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  883|   	client->ctrl_fd = waiter->fd;
#  884|   	add_waiter(client->ctrl_fd, POLLIN | POLLHUP, client_ctrl_handler, client);
#  885|-> 	add_waiter(client->poll_fd, POLLHUP, client_poll_handler, client);
#  886|   	client->open = 0;
#  887|   	list_add_tail(&client->list, &clients);

Error: CPPCHECK_WARNING (CWE-476): [#def7]
alsa-lib-1.2.15.1/aserver/aserver.c:886: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  884|   	add_waiter(client->ctrl_fd, POLLIN | POLLHUP, client_ctrl_handler, client);
#  885|   	add_waiter(client->poll_fd, POLLHUP, client_poll_handler, client);
#  886|-> 	client->open = 0;
#  887|   	list_add_tail(&client->list, &clients);
#  888|   	list_del(&pending->list);

Error: CPPCHECK_WARNING (CWE-476): [#def8]
alsa-lib-1.2.15.1/aserver/aserver.c:905: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  903|   	} else {
#  904|   		client_t *client = calloc(1, sizeof(*client));
#  905|-> 		client->ctrl_fd = sock;
#  906|   		client->local = 1;
#  907|   		client->open = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
alsa-lib-1.2.15.1/aserver/aserver.c:905:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘client’
alsa-lib-1.2.15.1/aserver/aserver.c:899:12: branch_false: following ‘false’ branch...
alsa-lib-1.2.15.1/aserver/aserver.c:904:36: branch_false: ...to here
alsa-lib-1.2.15.1/aserver/aserver.c:904:36: acquire_memory: this call could return NULL
alsa-lib-1.2.15.1/aserver/aserver.c:905:17: danger: ‘client’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  903|   	} else {
#  904|   		client_t *client = calloc(1, sizeof(*client));
#  905|-> 		client->ctrl_fd = sock;
#  906|   		client->local = 1;
#  907|   		client->open = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def10]
alsa-lib-1.2.15.1/aserver/aserver.c:906: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  904|   		client_t *client = calloc(1, sizeof(*client));
#  905|   		client->ctrl_fd = sock;
#  906|-> 		client->local = 1;
#  907|   		client->open = 0;
#  908|   		add_waiter(sock, POLLIN | POLLHUP, client_ctrl_handler, client);

Error: CPPCHECK_WARNING (CWE-476): [#def11]
alsa-lib-1.2.15.1/aserver/aserver.c:907: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: client
#  905|   		client->ctrl_fd = sock;
#  906|   		client->local = 1;
#  907|-> 		client->open = 0;
#  908|   		add_waiter(sock, POLLIN | POLLHUP, client_ctrl_handler, client);
#  909|   		list_add_tail(&client->list, &clients);

Error: CPPCHECK_WARNING (CWE-476): [#def12]
alsa-lib-1.2.15.1/aserver/aserver.c:924: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pending
#  922|   	} else {
#  923|   		inet_pending_t *pending = calloc(1, sizeof(*pending));
#  924|-> 		pending->fd = sock;
#  925|   		pending->cookie = 0;
#  926|   		add_waiter(sock, POLLIN, inet_pending_handler, pending);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
alsa-lib-1.2.15.1/aserver/aserver.c:924:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pending’
alsa-lib-1.2.15.1/aserver/aserver.c:918:12: branch_false: following ‘false’ branch...
alsa-lib-1.2.15.1/aserver/aserver.c:923:43: branch_false: ...to here
alsa-lib-1.2.15.1/aserver/aserver.c:923:43: acquire_memory: this call could return NULL
alsa-lib-1.2.15.1/aserver/aserver.c:924:17: danger: ‘pending’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  922|   	} else {
#  923|   		inet_pending_t *pending = calloc(1, sizeof(*pending));
#  924|-> 		pending->fd = sock;
#  925|   		pending->cookie = 0;
#  926|   		add_waiter(sock, POLLIN, inet_pending_handler, pending);

Error: CPPCHECK_WARNING (CWE-476): [#def14]
alsa-lib-1.2.15.1/aserver/aserver.c:925: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pending
#  923|   		inet_pending_t *pending = calloc(1, sizeof(*pending));
#  924|   		pending->fd = sock;
#  925|-> 		pending->cookie = 0;
#  926|   		add_waiter(sock, POLLIN, inet_pending_handler, pending);
#  927|   		list_add_tail(&pending->list, &inet_pendings);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def15]
alsa-lib-1.2.15.1/include/list.h:107:9: warning[-Wanalyzer-use-after-free]: use after 'free' of 'dl'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:79:12: enter_function: entry to 'snd_pcm_hooks_close'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:92:21: branch_true: following 'true' branch (when 'k != 3')...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:93:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:94:24: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:92:50: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:94:24: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:92:50: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:101:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:103:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:103:17: call_function: calling 'hook_remove_dlobj' from 'snd_pcm_hooks_close'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:103:17: return_function: returning to 'snd_pcm_hooks_close' from 'hook_remove_dlobj'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:101:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:103:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:103:17: call_function: calling 'hook_remove_dlobj' from 'snd_pcm_hooks_close'
#  105|   static inline void list_del(struct list_head *p)
#  106|   {
#  107|-> 	p->prev->next = p->next;
#  108|   	p->next->prev = p->prev;
#  109|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def16]
alsa-lib-1.2.15.1/include/list.h:107:9: warning[-Wanalyzer-use-after-free]: use after 'free' of 'hook'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:79:12: enter_function: entry to 'snd_pcm_hooks_close'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:92:21: branch_true: following 'true' branch (when 'k != 3')...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:93:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:94:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:97:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:98:25: call_function: calling 'snd_pcm_hook_remove' from 'snd_pcm_hooks_close'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:98:25: return_function: returning to 'snd_pcm_hooks_close' from 'snd_pcm_hook_remove'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:94:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:97:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:98:25: call_function: calling 'snd_pcm_hook_remove' from 'snd_pcm_hooks_close'
#  105|   static inline void list_del(struct list_head *p)
#  106|   {
#  107|-> 	p->prev->next = p->next;
#  108|   	p->next->prev = p->prev;
#  109|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
alsa-lib-1.2.15.1/include/local.h:263:68: warning[-Wanalyzer-malloc-leak]: leak of 'base_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2283:12: enter_function: entry to 'verb_strip_single_device_index'
alsa-lib-1.2.15.1/src/ucm/parser.c:2291:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2294:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2294:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:2295:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2298:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2298:23: call_function: calling 'parse_device_index' from 'verb_strip_single_device_index'
#  261|   #define safe_strtol_base _snd_safe_strtol_base
#  262|   int _snd_safe_strtol_base(const char *str, long *val, int base);
#  263|-> static inline int safe_strtol(const char *str, long *val) { return safe_strtol_base(str, val, 0); }
#  264|   #define safe_strtod _snd_safe_strtod
#  265|   int _snd_safe_strtod(const char *str, double *val);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
alsa-lib-1.2.15.1/include/local.h:263:68: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1719:5: enter_function: entry to 'snd1_pcm_direct_parse_bindings'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1766:23: call_function: inlined call to 'safe_strtol' from 'snd1_pcm_direct_parse_bindings'
#  261|   #define safe_strtol_base _snd_safe_strtol_base
#  262|   int _snd_safe_strtol_base(const char *str, long *val, int base);
#  263|-> static inline int safe_strtol(const char *str, long *val) { return safe_strtol_base(str, val, 0); }
#  264|   #define safe_strtod _snd_safe_strtod
#  265|   int _snd_safe_strtod(const char *str, double *val);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
alsa-lib-1.2.15.1/include/local.h:263:68: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:780:12: enter_function: entry to 'determine_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:802:47: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:805:29: call_function: inlined call to 'safe_strtol' from 'determine_chmap'
#  261|   #define safe_strtol_base _snd_safe_strtol_base
#  262|   int _snd_safe_strtol_base(const char *str, long *val, int base);
#  263|-> static inline int safe_strtol(const char *str, long *val) { return safe_strtol_base(str, val, 0); }
#  264|   #define safe_strtod _snd_safe_strtod
#  265|   int _snd_safe_strtod(const char *str, double *val);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
alsa-lib-1.2.15.1/include/local.h:263:68: warning[-Wanalyzer-malloc-leak]: leak of 'norm_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2192:12: enter_function: entry to 'verb_normalize_device_names'
alsa-lib-1.2.15.1/src/ucm/parser.c:2200:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2204:20: branch_false: following 'false' branch (when 'orig_name' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:2208:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2213:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2213:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2214:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2239:31: call_function: calling 'parse_device_index' from 'verb_normalize_device_names'
#  261|   #define safe_strtol_base _snd_safe_strtol_base
#  262|   int _snd_safe_strtol_base(const char *str, long *val, int base);
#  263|-> static inline int safe_strtol(const char *str, long *val) { return safe_strtol_base(str, val, 0); }
#  264|   #define safe_strtod _snd_safe_strtod
#  265|   int _snd_safe_strtod(const char *str, double *val);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
alsa-lib-1.2.15.1/include/local.h:263:68: warning[-Wanalyzer-malloc-leak]: leak of 'orig_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2192:12: enter_function: entry to 'verb_normalize_device_names'
alsa-lib-1.2.15.1/src/ucm/parser.c:2200:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:2204:20: branch_false: following 'false' branch (when 'orig_name' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2208:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2213:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2213:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2214:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2239:31: call_function: calling 'parse_device_index' from 'verb_normalize_device_names'
#  261|   #define safe_strtol_base _snd_safe_strtol_base
#  262|   int _snd_safe_strtol_base(const char *str, long *val, int base);
#  263|-> static inline int safe_strtol(const char *str, long *val) { return safe_strtol_base(str, val, 0); }
#  264|   #define safe_strtod _snd_safe_strtod
#  265|   int _snd_safe_strtod(const char *str, double *val);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
alsa-lib-1.2.15.1/include/local.h:263:68: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.15.1/src/confmisc.c:406:5: enter_function: entry to 'snd_func_concat'
alsa-lib-1.2.15.1/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.15.1/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:432:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:434:31: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:434:31: call_function: inlined call to 'safe_strtol' from 'snd_func_concat'
#  261|   #define safe_strtol_base _snd_safe_strtol_base
#  262|   int _snd_safe_strtol_base(const char *str, long *val, int base);
#  263|-> static inline int safe_strtol(const char *str, long *val) { return safe_strtol_base(str, val, 0); }
#  264|   #define safe_strtod _snd_safe_strtod
#  265|   int _snd_safe_strtod(const char *str, double *val);

Error: COMPILER_WARNING: [#def23]
alsa-lib-1.2.15.1/src/pcm/pcm_local.h:40: included_from: Included from here.
alsa-lib-1.2.15.1/src/pcm/pcm.c:671: included_from: Included from here.
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning__snd_pcm_boundary' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:7803:1: note: in expansion of macro 'link_warning'
# 7803 | link_warning(_snd_pcm_boundary, "Warning: _snd_pcm_boundary() is deprecated, consider to use snd_pcm_sw_params_current()");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def24]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning__snd_pcm_mmap_hw_ptr' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:7802:1: note: in expansion of macro 'link_warning'
# 7802 | link_warning(_snd_pcm_mmap_hw_ptr, "Warning: _snd_pcm_mmap_hw_ptr() is deprecated, consider to not use this function");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def25]
alsa-lib-1.2.15.1/src/control/control_local.h:22: included_from: Included from here.
alsa-lib-1.2.15.1/src/control/control.c:188: included_from: Included from here.
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_ctl_elem_info_is_indirect' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/control/control.c:2746:1: note: in expansion of macro 'link_warning'
# 2746 | link_warning(snd_ctl_elem_info_is_indirect, "Warning: snd_ctl_elem_info_is_indirect is deprecated, do not use it");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def26]
alsa-lib-1.2.15.1/src/error.c:31: included_from: Included from here.
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_lib_error' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/error.c:454:1: note: in expansion of macro 'link_warning'
#  454 | link_warning(snd_lib_error, "Warning: snd_lib_error is deprecated, use snd_log interface");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def27]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_lib_error_set_local' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/error.c:423:1: note: in expansion of macro 'link_warning'
#  423 | link_warning(snd_lib_error_set_local, "Warning: snd_lib_error_set_local is deprecated, use snd_lib_log_set_local");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def28]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_names_list' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/names.c:47:1: note: in expansion of macro 'link_warning'
#   47 | link_warning(snd_names_list, "Warning: snd_names_list is deprecated, use snd_device_name_hint");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def29]
alsa-lib-1.2.15.1/src/names.c:33: included_from: Included from here.
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_names_list_free' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/names.c:56:1: note: in expansion of macro 'link_warning'
#   56 | link_warning(snd_names_list_free, "Warning: snd_names_list_free is deprecated, use snd_device_name_free_hint");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def30]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_pcm_info_get_sync' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:7380:1: note: in expansion of macro 'link_warning'
# 7380 | link_warning(snd_pcm_info_get_sync, "Warning: snd_pcm_info_get_sync is deprecated, consider to use snd_pcm_hw_params_get_sync");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def31]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_pcm_start_mode_name' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:2260:1: note: in expansion of macro 'link_warning'
# 2260 | link_warning(snd_pcm_start_mode_name, "Warning: start_mode is deprecated, consider to use start_threshold");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def32]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_pcm_sw_params_get_start_mode' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:6526:1: note: in expansion of macro 'link_warning'
# 6526 | link_warning(snd_pcm_sw_params_get_start_mode, "Warning: start_mode is deprecated, consider to use start_threshold");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def33]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_pcm_sw_params_get_xrun_mode' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:6574:1: note: in expansion of macro 'link_warning'
# 6574 | link_warning(snd_pcm_sw_params_get_xrun_mode, "Warning: xrun_mode is deprecated, consider to use stop_threshold");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def34]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_pcm_sw_params_set_start_mode' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:6510:1: note: in expansion of macro 'link_warning'
# 6510 | link_warning(snd_pcm_sw_params_set_start_mode, "Warning: start_mode is deprecated, consider to use start_threshold");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def35]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_pcm_sw_params_set_xrun_mode' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:6558:1: note: in expansion of macro 'link_warning'
# 6558 | link_warning(snd_pcm_sw_params_set_xrun_mode, "Warning: xrun_mode is deprecated, consider to use stop_threshold");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def36]
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_pcm_xrun_mode_name' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/pcm/pcm.c:2276:1: note: in expansion of macro 'link_warning'
# 2276 | link_warning(snd_pcm_xrun_mode_name, "Warning: xrun_mode is deprecated, consider to use stop_threshold");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: COMPILER_WARNING: [#def37]
alsa-lib-1.2.15.1/src/timer/timer_local.h:22: included_from: Included from here.
alsa-lib-1.2.15.1/src/timer/timer.c:70: included_from: Included from here.
alsa-lib-1.2.15.1/include/local.h:318:21: warning[-Wunused-const-variable=]: '__evoke_link_warning_snd_timer_info_get_ticks' defined but not used
#  318 |   static const char __evoke_link_warning_##symbol[]     \
#      |                     ^~~~~~~~~~~~~~~~~~~~~
alsa-lib-1.2.15.1/src/timer/timer.c:963:1: note: in expansion of macro 'link_warning'
#  963 | link_warning(snd_timer_info_get_ticks, "Warning: snd_timer_info_get_ticks is deprecated");
#      | ^~~~~~~~~~~~
#  316|   #   define link_warning(symbol, msg) \
#  317|     __make_section_unallocated (".gnu.warning." ASM_NAME(#symbol)) \
#  318|->   static const char __evoke_link_warning_##symbol[]	\
#  319|       __attribute__ ((section (".gnu.warning." ASM_NAME(#symbol) "\n\t#"))) = msg;
#  320|   #  endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
alsa-lib-1.2.15.1/include/pcm.h:1214:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src_area'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:151:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:160:15: call_function: inlined call to 'snd_pcm_channel_area_addr' from 'snd_pcm_route_convert1_one'
# 1212|   static inline void *snd_pcm_channel_area_addr(const snd_pcm_channel_area_t *area, snd_pcm_uframes_t offset)
# 1213|   {
# 1214|-> 	return (char *)area->addr + (area->first + area->step * offset) / 8;
# 1215|   }
# 1216|   

Error: CPPCHECK_WARNING (CWE-476): [#def39]
alsa-lib-1.2.15.1/src/conf.c:4172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: filename
# 4170|   				int sl = strlen(fn) + strlen(namelist[j]->d_name) + 2;
# 4171|   				char *filename = malloc(sl);
# 4172|-> 				snprintf(filename, sl, "%s/%s", fn, namelist[j]->d_name);
# 4173|   				filename[sl-1] = '\0';
# 4174|   

Error: COMPILER_WARNING (CWE-704): [#def40]
alsa-lib-1.2.15.1/src/conf.c: scope_hint: In function 'snd_config_hook_load_for_all_cards'
alsa-lib-1.2.15.1/src/conf.c:4446:51: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 4446 |                                         char *s = strchr(driver, '.');
#      |                                                   ^~~~~~
# 4444|   				}
# 4445|   				while (1) {
# 4446|-> 					char *s = strchr(driver, '.');
# 4447|   					if (s == NULL)
# 4448|   						break;

Error: COMPILER_WARNING (CWE-704): [#def41]
alsa-lib-1.2.15.1/src/conf.c:4446:51: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 4444|   				}
# 4445|   				while (1) {
# 4446|-> 					char *s = strchr(driver, '.');
# 4447|   					if (s == NULL)
# 4448|   						break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
alsa-lib-1.2.15.1/src/confeval.c:205:39: warning[-Wanalyzer-malloc-leak]: leak of 'm'
alsa-lib-1.2.15.1/src/confeval.c:261:5: enter_function: entry to 'snd_config_evaluate_string'
alsa-lib-1.2.15.1/src/confeval.c:264:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confeval.c:267:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/confeval.c:267:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confeval.c:269:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/confeval.c:269:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confeval.c:270:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/confeval.c:270:23: call_function: calling '_snd_eval_string' from 'snd_config_evaluate_string'
#  203|   				memcpy(m, s + 1, e - s - 1);
#  204|   				m[e - s - 1] = '\0';
#  205|-> 				err = fcn(&tmp, m, private_data);
#  206|   				free(m);
#  207|   				if (err < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
alsa-lib-1.2.15.1/src/confeval.c:210:47: warning[-Wanalyzer-malloc-leak]: leak of 'm'
alsa-lib-1.2.15.1/src/confeval.c:261:5: enter_function: entry to 'snd_config_evaluate_string'
alsa-lib-1.2.15.1/src/confeval.c:264:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confeval.c:267:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/confeval.c:267:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confeval.c:269:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/confeval.c:269:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confeval.c:270:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/confeval.c:270:23: call_function: calling '_snd_eval_string' from 'snd_config_evaluate_string'
#  208|   					return err;
#  209|   				if (tmp == NULL) {
#  210|-> 					err = snd_config_imake_integer(&tmp, NULL, 0);
#  211|   					if (err < 0)
#  212|   						return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
alsa-lib-1.2.15.1/src/confeval.c:228:17: warning[-Wanalyzer-malloc-leak]: leak of 'm'
alsa-lib-1.2.15.1/src/confeval.c:261:5: enter_function: entry to 'snd_config_evaluate_string'
alsa-lib-1.2.15.1/src/confeval.c:264:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confeval.c:267:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/confeval.c:267:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confeval.c:269:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/confeval.c:269:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confeval.c:270:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/confeval.c:270:23: call_function: calling '_snd_eval_string' from 'snd_config_evaluate_string'
#  226|   	}
#  227|   	if (pos != OP && pos != END) {
#  228|-> 		snd_error(CORE, "incomplete expression '%s'", save);
#  229|   		return -EINVAL;
#  230|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def45]
alsa-lib-1.2.15.1/src/confeval.c:245:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'left'
alsa-lib-1.2.15.1/src/confeval.c:261:5: enter_function: entry to 'snd_config_evaluate_string'
alsa-lib-1.2.15.1/src/confeval.c:264:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confeval.c:267:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/confeval.c:267:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confeval.c:269:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/confeval.c:269:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confeval.c:270:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/confeval.c:270:23: call_function: calling '_snd_eval_string' from 'snd_config_evaluate_string'
#  243|   	}
#  244|   
#  245|-> 	if (left > INT_MAX || left < INT_MIN)
#  246|   		return snd_config_imake_integer64(dst, NULL, left);
#  247|   	else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
alsa-lib-1.2.15.1/src/confmisc.c:427:17: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.15.1/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.15.1/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:463:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:463:18: branch_true: following 'true' branch (when 'hit != 0')...
alsa-lib-1.2.15.1/src/confmisc.c:463:18: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: throw: if 'snd_config_iterator_first' throws an exception...
alsa-lib-1.2.15.1/src/confmisc.c:427:17: danger: 'res' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  425|   	do {
#  426|   		hit = 0;
#  427|-> 		snd_config_for_each(i, next, n) {
#  428|   			snd_config_t *n = snd_config_iterator_entry(i);
#  429|   			char *ptr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
alsa-lib-1.2.15.1/src/confmisc.c:428:43: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.15.1/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.15.1/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:428:43: throw: if 'snd_config_iterator_entry' throws an exception...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: danger: 'res' leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
#  426|   		hit = 0;
#  427|   		snd_config_for_each(i, next, n) {
#  428|-> 			snd_config_t *n = snd_config_iterator_entry(i);
#  429|   			char *ptr;
#  430|   			const char *id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
alsa-lib-1.2.15.1/src/confmisc.c:432:29: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.15.1/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.15.1/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:432:29: throw: if 'snd_config_get_id' throws an exception...
alsa-lib-1.2.15.1/src/confmisc.c:432:29: danger: 'res' leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  430|   			const char *id;
#  431|   			long i;
#  432|-> 			if (snd_config_get_id(n, &id) < 0)
#  433|   				continue;
#  434|   			err = safe_strtol(id, &i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
alsa-lib-1.2.15.1/src/confmisc.c:436:33: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.15.1/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.15.1/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:432:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:434:31: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:436:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:436:33: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/confmisc.c:436:33: danger: 'res' leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
#  434|   			err = safe_strtol(id, &i);
#  435|   			if (err < 0) {
#  436|-> 				snd_error(CORE, "id of field %s is not an integer", id);
#  437|   				err = -EINVAL;
#  438|   				goto __error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
alsa-lib-1.2.15.1/src/confmisc.c:442:39: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.15.1/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.15.1/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:432:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:434:31: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:440:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:441:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:442:39: throw: if 'snd_config_get_ascii' throws an exception...
alsa-lib-1.2.15.1/src/confmisc.c:442:39: danger: 'res' leaks here; was allocated at [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
#  440|   			if (i == idx) {
#  441|   				idx++;
#  442|-> 				err = snd_config_get_ascii(n, &ptr);
#  443|   				if (err < 0) {
#  444|   					snd_error(CORE, "invalid ascii string for id %s", id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
alsa-lib-1.2.15.1/src/confmisc.c:444:41: warning[-Wanalyzer-malloc-leak]: leak of 'res'
alsa-lib-1.2.15.1/src/confmisc.c:416:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:420:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:421:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:443:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:448:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:450:36: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
alsa-lib-1.2.15.1/src/confmisc.c:455:33: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:427:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:428:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:432:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:434:31: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:435:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:440:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:440:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:441:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:443:36: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/confmisc.c:444:41: branch_true: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:444:41: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/confmisc.c:444:41: danger: 'res' leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
#  442|   				err = snd_config_get_ascii(n, &ptr);
#  443|   				if (err < 0) {
#  444|-> 					snd_error(CORE, "invalid ascii string for id %s", id);
#  445|   					err = -EINVAL;
#  446|   					goto __error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
alsa-lib-1.2.15.1/src/confmisc.c:779:17: warning[-Wanalyzer-malloc-leak]: leak of 'driver'
alsa-lib-1.2.15.1/src/confmisc.c:801:5: enter_function: entry to 'snd_func_private_card_driver'
alsa-lib-1.2.15.1/src/confmisc.c:810:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:814:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:815:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/confmisc.c:819:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/confmisc.c:819:20: call_function: calling 'snd_determine_driver' from 'snd_func_private_card_driver'
#  777|         __error:
#  778|   	if (ctl)
#  779|-> 		snd_ctl_close(ctl);
#  780|   	return err;
#  781|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
alsa-lib-1.2.15.1/src/control/control.c:428:16: warning[-Wanalyzer-malloc-leak]: leak of 'info'
alsa-lib-1.2.15.1/src/control/control.c:1040:12: enter_function: entry to 'snd_ctl_tlv_do'
alsa-lib-1.2.15.1/src/control/control.c:1047:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1048:24: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1048:24: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control.c:1049:20: branch_false: following 'false' branch (when 'info' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1051:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1053:23: call_function: calling 'snd_ctl_elem_info' from 'snd_ctl_tlv_do'
#  426|   {
#  427|   	assert(ctl && info && (info->id.name[0] || info->id.numid));
#  428|-> 	return ctl->ops->element_info(ctl, info);
#  429|   }
#  430|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
alsa-lib-1.2.15.1/src/control/control.c:1545:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/control.c:1459:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1466:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1467:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1471:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1472:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1476:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1477:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1481:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1516:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1517:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1517:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control.c:1518:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1527:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1528:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1532:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1545:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1545:21: throw: if 'snd1_dlobj_cache_get' throws an exception...
alsa-lib-1.2.15.1/src/control/control.c:1545:21: danger: 'buf' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
# 1543|   	snd_control_open_symbols();
# 1544|   #endif
# 1545|-> 	open_func = snd_dlobj_cache_get(lib, open_name,
# 1546|   			SND_DLSYM_VERSION(SND_CONTROL_DLSYM_VERSION), 1);
# 1547|   	if (open_func) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
alsa-lib-1.2.15.1/src/control/control.c:1545:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/control.c:1459:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1466:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1467:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1471:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1472:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1476:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1477:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1481:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1516:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1517:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1518:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1527:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1528:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1528:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/control/control.c:1530:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1528:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/control/control.c:1530:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1532:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1533:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1533:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control.c:1534:28: branch_false: following 'false' branch (when 'buf1' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1538:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1545:21: throw: if 'snd1_dlobj_cache_get' throws an exception...
alsa-lib-1.2.15.1/src/control/control.c:1545:21: danger: 'buf1' leaks here; was allocated at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
# 1543|   	snd_control_open_symbols();
# 1544|   #endif
# 1545|-> 	open_func = snd_dlobj_cache_get(lib, open_name,
# 1546|   			SND_DLSYM_VERSION(SND_CONTROL_DLSYM_VERSION), 1);
# 1547|   	if (open_func) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
alsa-lib-1.2.15.1/src/control/control.c:1548:23: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/control.c:1459:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1466:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1467:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1471:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1472:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1476:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1477:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1481:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1482:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1483:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1483:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1488:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1488:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1489:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1495:28: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/control/control.c:1496:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1497:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1495:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1516:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1517:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1517:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control.c:1518:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1547:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1548:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1548:23: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/control/control.c:1548:23: danger: 'buf' leaks here; was allocated at [(21)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/20)
# 1546|   			SND_DLSYM_VERSION(SND_CONTROL_DLSYM_VERSION), 1);
# 1547|   	if (open_func) {
# 1548|-> 		err = open_func(ctlp, name, ctl_root, ctl_conf, mode);
# 1549|   		if (err >= 0) {
# 1550|   			(*ctlp)->open_func = open_func;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
alsa-lib-1.2.15.1/src/control/control.c:1548:23: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/control.c:1459:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1466:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1467:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1471:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1472:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1476:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1477:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1481:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1516:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1517:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1518:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1527:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1528:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1528:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/control/control.c:1530:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1528:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/control/control.c:1530:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1532:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1533:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1533:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control.c:1534:28: branch_false: following 'false' branch (when 'buf1' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1538:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1547:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1548:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1548:23: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/control/control.c:1548:23: danger: 'buf1' leaks here; was allocated at [(23)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/22)
# 1546|   			SND_DLSYM_VERSION(SND_CONTROL_DLSYM_VERSION), 1);
# 1547|   	if (open_func) {
# 1548|-> 		err = open_func(ctlp, name, ctl_root, ctl_conf, mode);
# 1549|   		if (err >= 0) {
# 1550|   			(*ctlp)->open_func = open_func;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
alsa-lib-1.2.15.1/src/control/control.c:1553:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/control.c:1459:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1466:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1467:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1471:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1472:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1476:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1477:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1481:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1482:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1483:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1483:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1488:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1488:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1489:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1495:28: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/control/control.c:1496:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1497:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1495:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1516:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1517:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1517:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control.c:1518:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1547:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1548:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1549:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1553:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1553:25: throw: if 'snd1_dlobj_cache_put' throws an exception...
alsa-lib-1.2.15.1/src/control/control.c:1553:25: danger: 'buf' leaks here; was allocated at [(21)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/20)
# 1551|   			err = 0;
# 1552|   		} else {
# 1553|-> 			snd_dlobj_cache_put(open_func);
# 1554|   		}
# 1555|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
alsa-lib-1.2.15.1/src/control/control.c:1553:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/control.c:1459:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1466:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1467:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1471:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1472:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1476:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1477:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1481:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1516:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1517:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1518:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1527:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1528:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1528:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/control/control.c:1530:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1528:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/control/control.c:1530:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1532:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1533:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1533:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control.c:1534:28: branch_false: following 'false' branch (when 'buf1' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1538:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1547:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1548:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1549:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1553:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1553:25: throw: if 'snd1_dlobj_cache_put' throws an exception...
alsa-lib-1.2.15.1/src/control/control.c:1553:25: danger: 'buf1' leaks here; was allocated at [(23)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/22)
# 1551|   			err = 0;
# 1552|   		} else {
# 1553|-> 			snd_dlobj_cache_put(open_func);
# 1554|   		}
# 1555|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
alsa-lib-1.2.15.1/src/control/control.c:1560:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/control.c:1459:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1466:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1467:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1471:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1472:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1476:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1477:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control.c:1481:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1516:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1517:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1517:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control.c:1518:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1525:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1527:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1528:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1528:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/control/control.c:1530:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1528:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/control/control.c:1530:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1532:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1533:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1534:28: branch_true: following 'true' branch (when 'buf1' is NULL)...
alsa-lib-1.2.15.1/src/control/control.c:1536:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1559:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control.c:1560:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control.c:1560:17: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/control/control.c:1560:17: danger: 'buf' leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
# 1558|          _err:
# 1559|   	if (type_conf)
# 1560|-> 		snd_config_delete(type_conf);
# 1561|   	free(buf);
# 1562|   	free(buf1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
alsa-lib-1.2.15.1/src/control/control_hw.c:478:15: warning[-Wanalyzer-malloc-leak]: leak of 'hw'
alsa-lib-1.2.15.1/src/control/control_hw.c:440:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_hw.c:444:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_hw.c:460:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_hw.c:465:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_hw.c:465:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_hw.c:469:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control_hw.c:470:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control_hw.c:474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_hw.c:478:15: throw: if 'snd1_ctl_new' throws an exception...
alsa-lib-1.2.15.1/src/control/control_hw.c:478:15: danger: 'hw' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  476|   	hw->protocol = ver;
#  477|   
#  478|-> 	err = snd_ctl_new(&ctl, SND_CTL_TYPE_HW, name, mode);
#  479|   	if (err < 0) {
#  480|   		close(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
alsa-lib-1.2.15.1/src/control/control_hw.c:480:17: warning[-Wanalyzer-malloc-leak]: leak of 'hw'
alsa-lib-1.2.15.1/src/control/control_hw.c:440:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_hw.c:444:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_hw.c:460:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_hw.c:465:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_hw.c:465:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_hw.c:469:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control_hw.c:470:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control_hw.c:474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_hw.c:479:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control_hw.c:480:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control_hw.c:480:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/control/control_hw.c:480:17: danger: 'hw' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  478|   	err = snd_ctl_new(&ctl, SND_CTL_TYPE_HW, name, mode);
#  479|   	if (err < 0) {
#  480|-> 		close(fd);
#  481|   		free(hw);
#  482|   		return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
alsa-lib-1.2.15.1/src/control/control_remap.c:1239:9: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
alsa-lib-1.2.15.1/src/control/control_remap.c:1620:5: enter_function: entry to 'snd_ctl_remap_open'
alsa-lib-1.2.15.1/src/control/control_remap.c:1632:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control_remap.c:1633:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control_remap.c:1636:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_remap.c:1636:15: call_function: calling 'parse_remap' from 'snd_ctl_remap_open'
# 1237|   	if (conf == NULL)
# 1238|   		return 0;
# 1239|-> 	snd_config_for_each(i, next, conf) {
# 1240|   		snd_config_t *n = snd_config_iterator_entry(i);
# 1241|   		const char *id, *str;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
alsa-lib-1.2.15.1/src/control/control_remap.c:1240:35: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
alsa-lib-1.2.15.1/src/control/control_remap.c:1620:5: enter_function: entry to 'snd_ctl_remap_open'
alsa-lib-1.2.15.1/src/control/control_remap.c:1632:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control_remap.c:1633:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control_remap.c:1636:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_remap.c:1636:15: call_function: calling 'parse_remap' from 'snd_ctl_remap_open'
# 1238|   		return 0;
# 1239|   	snd_config_for_each(i, next, conf) {
# 1240|-> 		snd_config_t *n = snd_config_iterator_entry(i);
# 1241|   		const char *id, *str;
# 1242|   		if (snd_config_get_id(n, &id) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
alsa-lib-1.2.15.1/src/control/control_remap.c:1242:21: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
alsa-lib-1.2.15.1/src/control/control_remap.c:1620:5: enter_function: entry to 'snd_ctl_remap_open'
alsa-lib-1.2.15.1/src/control/control_remap.c:1632:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control_remap.c:1633:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control_remap.c:1636:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_remap.c:1636:15: call_function: calling 'parse_remap' from 'snd_ctl_remap_open'
# 1240|   		snd_config_t *n = snd_config_iterator_entry(i);
# 1241|   		const char *id, *str;
# 1242|-> 		if (snd_config_get_id(n, &id) < 0)
# 1243|   			continue;
# 1244|   		if (snd_config_get_string(n, &str) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
alsa-lib-1.2.15.1/src/control/control_remap.c:1244:21: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
alsa-lib-1.2.15.1/src/control/control_remap.c:1620:5: enter_function: entry to 'snd_ctl_remap_open'
alsa-lib-1.2.15.1/src/control/control_remap.c:1632:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control_remap.c:1633:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control_remap.c:1636:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_remap.c:1636:15: call_function: calling 'parse_remap' from 'snd_ctl_remap_open'
# 1242|   		if (snd_config_get_id(n, &id) < 0)
# 1243|   			continue;
# 1244|-> 		if (snd_config_get_string(n, &str) < 0) {
# 1245|   			snd_error(CONTROL, "expected string with the target control id!");
# 1246|   			return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
alsa-lib-1.2.15.1/src/control/control_shm.c:425:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'make_local_socket(sockname)'
alsa-lib-1.2.15.1/src/control/control_shm.c:434:5: enter_function: entry to 'snd_ctl_shm_open'
alsa-lib-1.2.15.1/src/control/control_shm.c:446:12: branch_false: following 'false' branch (when 'snamelen <= 255')...
alsa-lib-1.2.15.1/src/control/control_shm.c:449:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:449:18: call_function: calling 'make_local_socket' from 'snd_ctl_shm_open'
alsa-lib-1.2.15.1/src/control/control_shm.c:449:18: return_function: returning to 'snd_ctl_shm_open' from 'make_local_socket'
alsa-lib-1.2.15.1/src/control/control_shm.c:450:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_shm.c:456:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:464:15: throw: if 'write' throws an exception...
alsa-lib-1.2.15.1/src/control/control_shm.c:425:16: danger: 'make_local_socket(sockname)' leaks here
#  423|   
#  424|   	addr->sun_family = AF_LOCAL;
#  425|-> 	memcpy(addr->sun_path, filename, l);
#  426|   
#  427|   	if (connect(sock, (struct sockaddr *) addr, size) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
alsa-lib-1.2.15.1/src/control/control_shm.c:428:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'sock'
alsa-lib-1.2.15.1/src/control/control_shm.c:420:16: acquire_resource: stream socket created here
alsa-lib-1.2.15.1/src/control/control_shm.c:421:12: branch_false: following 'false' branch (when 'sock >= 0')...
alsa-lib-1.2.15.1/src/control/control_shm.c:424:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:427:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/control_shm.c:428:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:428:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/control/control_shm.c:428:17: danger: 'sock' leaks here
#  426|   
#  427|   	if (connect(sock, (struct sockaddr *) addr, size) < 0) {
#  428|-> 		close(sock);
#  429|   		return -errno;
#  430|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
alsa-lib-1.2.15.1/src/control/control_shm.c:510:15: warning[-Wanalyzer-malloc-leak]: leak of 'shm'
alsa-lib-1.2.15.1/src/control/control_shm.c:434:5: enter_function: entry to 'snd_ctl_shm_open'
alsa-lib-1.2.15.1/src/control/control_shm.c:446:12: branch_false: following 'false' branch (when 'snamelen <= 255')...
alsa-lib-1.2.15.1/src/control/control_shm.c:449:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:449:18: call_function: calling 'make_local_socket' from 'snd_ctl_shm_open'
alsa-lib-1.2.15.1/src/control/control_shm.c:449:18: return_function: returning to 'snd_ctl_shm_open' from 'make_local_socket'
alsa-lib-1.2.15.1/src/control/control_shm.c:450:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_shm.c:456:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:465:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/control/control_shm.c:470:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:470:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_shm.c:475:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:476:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/control/control_shm.c:481:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:481:12: branch_false: following 'false' branch (when 'err == 16')...
alsa-lib-1.2.15.1/src/control/control_shm.c:486:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:486:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/control_shm.c:491:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:492:12: branch_false: following 'false' branch (when 'result >= 0')...
alsa-lib-1.2.15.1/src/control/control_shm.c:495:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:496:12: branch_false: following 'false' branch (when 'ctrl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control_shm.c:501:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:501:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/control_shm.c:502:12: branch_false: following 'false' branch (when 'shm' is non-NULL)...
alsa-lib-1.2.15.1/src/control/control_shm.c:507:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/control_shm.c:510:15: throw: if 'snd1_ctl_new' throws an exception...
alsa-lib-1.2.15.1/src/control/control_shm.c:510:15: danger: 'shm' leaks here; was allocated at [(26)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/25)
#  508|   	shm->ctrl = ctrl;
#  509|   
#  510|-> 	err = snd_ctl_new(&ctl, SND_CTL_TYPE_SHM, name, mode);
#  511|   	if (err < 0) {
#  512|   		result = err;

Error: GCC_ANALYZER_WARNING (CWE-121): [#def70]
alsa-lib-1.2.15.1/src/control/eld.c:92:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
alsa-lib-1.2.15.1/src/control/eld.c:55:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:60:52: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:66:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:68:12: branch_false: following 'false' branch (when 'ret >= 0')...
alsa-lib-1.2.15.1/src/control/eld.c:74:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:74:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:76:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:77:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:80:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:80:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:88:16: branch_true: following 'true' branch (when 'l != 0')...
alsa-lib-1.2.15.1/src/control/eld.c:89:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:91:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/eld.c:92:26: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:92:25: danger: write of 1 byte at offset '(sizetype)l' exceeds the buffer
#   90|   		c = eld[20 + l];
#   91|   		if (c <= ' ' || c >= 0x7f) {
#   92|-> 			s[l] = ' ';
#   93|   		} else {
#   94|   			valid += !!isalnum(c);

Error: GCC_ANALYZER_WARNING (CWE-121): [#def71]
alsa-lib-1.2.15.1/src/control/eld.c:95:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
alsa-lib-1.2.15.1/src/control/eld.c:55:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:60:52: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:66:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:68:12: branch_false: following 'false' branch (when 'ret >= 0')...
alsa-lib-1.2.15.1/src/control/eld.c:74:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:74:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:76:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:77:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:80:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:80:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:88:16: branch_true: following 'true' branch (when 'l != 0')...
alsa-lib-1.2.15.1/src/control/eld.c:89:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:91:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/eld.c:94:36: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/eld.c:95:25: danger: write of 1 byte at offset '(sizetype)l' exceeds the buffer
#   93|   		} else {
#   94|   			valid += !!isalnum(c);
#   95|-> 			s[l] = c;
#   96|   			if (spc == 0)
#   97|   				spc = l + 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
alsa-lib-1.2.15.1/src/control/hcontrol.c:334:21: warning[-Wanalyzer-malloc-leak]: leak of 'elem'
alsa-lib-1.2.15.1/src/control/hcontrol.c:729:12: enter_function: entry to 'snd_hctl_handle_event'
alsa-lib-1.2.15.1/src/control/hcontrol.c:734:9: branch_true: following 'true' branch (when 'hctl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/hcontrol.c:735:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:735:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:736:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:736:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:742:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:742:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:750:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:750:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:751:24: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:751:24: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/hcontrol.c:752:20: branch_false: following 'false' branch (when 'elem' is non-NULL)...
alsa-lib-1.2.15.1/src/control/hcontrol.c:754:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:756:23: call_function: calling 'snd_hctl_elem_add' from 'snd_hctl_handle_event'
#  332|   	while (l < u) {
#  333|   		idx = (l + u) / 2;
#  334|-> 		c = hctl->compare(&el, hctl->pelems[idx]);
#  335|   		if (c < 0)
#  336|   			u = idx;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
alsa-lib-1.2.15.1/src/control/hcontrol.c:756:23: warning[-Wanalyzer-malloc-leak]: leak of 'elem'
alsa-lib-1.2.15.1/src/control/hcontrol.c:729:12: enter_function: entry to 'snd_hctl_handle_event'
alsa-lib-1.2.15.1/src/control/hcontrol.c:734:9: branch_true: following 'true' branch (when 'hctl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/hcontrol.c:735:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:735:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:736:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:736:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:742:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:742:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:750:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:750:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:751:24: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:751:24: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/hcontrol.c:752:20: branch_false: following 'false' branch (when 'elem' is non-NULL)...
alsa-lib-1.2.15.1/src/control/hcontrol.c:754:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:756:23: call_function: calling 'snd_hctl_elem_add' from 'snd_hctl_handle_event'
alsa-lib-1.2.15.1/src/control/hcontrol.c:756:23: return_function: returning to 'snd_hctl_handle_event' from 'snd_hctl_elem_add'
alsa-lib-1.2.15.1/src/control/hcontrol.c:757:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/hcontrol.c:757:20: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/hcontrol.c:756:23: danger: 'elem' leaks here; was allocated at [(12)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/11)
#  754|   		elem->id = event->data.elem.id;
#  755|   		elem->hctl = hctl;
#  756|-> 		res = snd_hctl_elem_add(hctl, elem);
#  757|   		if (res < 0)
#  758|   			return res;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
alsa-lib-1.2.15.1/src/control/namehint.c:129:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  127|   		{
#  128|   			snd_hwdep_info_t info = {0};
#  129|-> 			snd_hwdep_info_set_device(&info, device);
#  130|   			if (snd_ctl_hwdep_info(list->ctl, &info) < 0)
#  131|   				return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
alsa-lib-1.2.15.1/src/control/namehint.c:130:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  128|   			snd_hwdep_info_t info = {0};
#  129|   			snd_hwdep_info_set_device(&info, device);
#  130|-> 			if (snd_ctl_hwdep_info(list->ctl, &info) < 0)
#  131|   				return 0;
#  132|   			*res = strdup(snd_hwdep_info_get_name(&info));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
alsa-lib-1.2.15.1/src/control/namehint.c:132:32: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  130|   			if (snd_ctl_hwdep_info(list->ctl, &info) < 0)
#  131|   				return 0;
#  132|-> 			*res = strdup(snd_hwdep_info_get_name(&info));
#  133|   			return 0;
#  134|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
alsa-lib-1.2.15.1/src/control/namehint.c:140:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  138|   		{
#  139|   			snd_pcm_info_t info = {0};
#  140|-> 			snd_pcm_info_set_device(&info, device);
#  141|   			snd_pcm_info_set_stream(&info, stream ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK);
#  142|   			if (snd_ctl_pcm_info(list->ctl, &info) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
alsa-lib-1.2.15.1/src/control/namehint.c:141:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  139|   			snd_pcm_info_t info = {0};
#  140|   			snd_pcm_info_set_device(&info, device);
#  141|-> 			snd_pcm_info_set_stream(&info, stream ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK);
#  142|   			if (snd_ctl_pcm_info(list->ctl, &info) < 0)
#  143|   				return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
alsa-lib-1.2.15.1/src/control/namehint.c:142:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  140|   			snd_pcm_info_set_device(&info, device);
#  141|   			snd_pcm_info_set_stream(&info, stream ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK);
#  142|-> 			if (snd_ctl_pcm_info(list->ctl, &info) < 0)
#  143|   				return 0;
#  144|   			switch (snd_pcm_info_get_class(&info)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
alsa-lib-1.2.15.1/src/control/namehint.c:144:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  142|   			if (snd_ctl_pcm_info(list->ctl, &info) < 0)
#  143|   				return 0;
#  144|-> 			switch (snd_pcm_info_get_class(&info)) {
#  145|   			case SND_PCM_CLASS_MODEM:
#  146|   			case SND_PCM_CLASS_DIGITIZER:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
alsa-lib-1.2.15.1/src/control/namehint.c:151:32: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  149|   				break;
#  150|   			}
#  151|-> 			*res = strdup(snd_pcm_info_get_name(&info));
#  152|   			return 0;
#  153|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
alsa-lib-1.2.15.1/src/control/namehint.c:260:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  258|   	sprintf(buf, "%s.%s", base, name);
#  259|   	/* look for redirection */
#  260|-> 	if (snd_config_search(config, buf, &cfg) >= 0 &&
#  261|   	    snd_config_get_string(cfg, &str) >= 0 &&
#  262|   	    ((strncmp(base, str, strlen(base)) == 0 &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
alsa-lib-1.2.15.1/src/control/namehint.c:261:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  259|   	/* look for redirection */
#  260|   	if (snd_config_search(config, buf, &cfg) >= 0 &&
#  261|-> 	    snd_config_get_string(cfg, &str) >= 0 &&
#  262|   	    ((strncmp(base, str, strlen(base)) == 0 &&
#  263|   	     str[strlen(base)] == '.') || strchr(str, '.') == NULL))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
alsa-lib-1.2.15.1/src/control/namehint.c:266:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  264|   		goto __skip_add;
#  265|   	if (list->card >= 0 && list->device >= 0)
#  266|-> 		sprintf(buf, "%s:CARD=%s,DEV=%i", name, snd_ctl_card_info_get_id(list->info), list->device);
#  267|   	else if (list->card >= 0)
#  268|   		sprintf(buf, "%s:CARD=%s", name, snd_ctl_card_info_get_id(list->info));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
alsa-lib-1.2.15.1/src/control/namehint.c:268:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  266|   		sprintf(buf, "%s:CARD=%s,DEV=%i", name, snd_ctl_card_info_get_id(list->info), list->device);
#  267|   	else if (list->card >= 0)
#  268|-> 		sprintf(buf, "%s:CARD=%s", name, snd_ctl_card_info_get_id(list->info));
#  269|   	else
#  270|   		strcpy(buf, name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
alsa-lib-1.2.15.1/src/control/namehint.c:271:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  269|   	else
#  270|   		strcpy(buf, name);
#  271|-> 	eh = snd_lib_log_set_local(&zero_handler);
#  272|   	err = snd_config_search_definition(config, base, buf, &res);
#  273|   	snd_lib_log_set_local(eh);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
alsa-lib-1.2.15.1/src/control/namehint.c:272:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  270|   		strcpy(buf, name);
#  271|   	eh = snd_lib_log_set_local(&zero_handler);
#  272|-> 	err = snd_config_search_definition(config, base, buf, &res);
#  273|   	snd_lib_log_set_local(eh);
#  274|   	if (err < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
alsa-lib-1.2.15.1/src/control/namehint.c:273:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  271|   	eh = snd_lib_log_set_local(&zero_handler);
#  272|   	err = snd_config_search_definition(config, base, buf, &res);
#  273|-> 	snd_lib_log_set_local(eh);
#  274|   	if (err < 0)
#  275|   		goto __skip_add;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
alsa-lib-1.2.15.1/src/control/namehint.c:278:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  276|   	cleanup_res = 1;
#  277|   	err = -EINVAL;
#  278|-> 	if (snd_config_get_type(res) != SND_CONFIG_TYPE_COMPOUND)
#  279|   		goto __cleanup;
#  280|   	if (snd_config_search(res, "type", NULL) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
alsa-lib-1.2.15.1/src/control/namehint.c:280:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  278|   	if (snd_config_get_type(res) != SND_CONFIG_TYPE_COMPOUND)
#  279|   		goto __cleanup;
#  280|-> 	if (snd_config_search(res, "type", NULL) < 0)
#  281|   		goto __cleanup;
#  282|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
alsa-lib-1.2.15.1/src/control/namehint.c:298:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  296|         __hint:
#  297|   	level++;
#  298|-> 	if (snd_config_search(cfg1, "type", &cfg) >= 0 &&
#  299|   	    snd_config_get_string(cfg, &str) >= 0 &&
#  300|   	    strcmp(str, "hw") == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
alsa-lib-1.2.15.1/src/control/namehint.c:298:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  296|         __hint:
#  297|   	level++;
#  298|-> 	if (snd_config_search(cfg1, "type", &cfg) >= 0 &&
#  299|   	    snd_config_get_string(cfg, &str) >= 0 &&
#  300|   	    strcmp(str, "hw") == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
alsa-lib-1.2.15.1/src/control/namehint.c:299:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  297|   	level++;
#  298|   	if (snd_config_search(cfg1, "type", &cfg) >= 0 &&
#  299|-> 	    snd_config_get_string(cfg, &str) >= 0 &&
#  300|   	    strcmp(str, "hw") == 0) {
#  301|   		if (snd_config_search(cfg1, "device", &cfg) >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
alsa-lib-1.2.15.1/src/control/namehint.c:299:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  297|   	level++;
#  298|   	if (snd_config_search(cfg1, "type", &cfg) >= 0 &&
#  299|-> 	    snd_config_get_string(cfg, &str) >= 0 &&
#  300|   	    strcmp(str, "hw") == 0) {
#  301|   		if (snd_config_search(cfg1, "device", &cfg) >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
alsa-lib-1.2.15.1/src/control/namehint.c:301:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  299|   	    snd_config_get_string(cfg, &str) >= 0 &&
#  300|   	    strcmp(str, "hw") == 0) {
#  301|-> 		if (snd_config_search(cfg1, "device", &cfg) >= 0) {
#  302|   			if (snd_config_get_integer(cfg, &dev) < 0) {
#  303|   				snd_error(CONTROL, "(%s) device must be an integer", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
alsa-lib-1.2.15.1/src/control/namehint.c:301:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  299|   	    snd_config_get_string(cfg, &str) >= 0 &&
#  300|   	    strcmp(str, "hw") == 0) {
#  301|-> 		if (snd_config_search(cfg1, "device", &cfg) >= 0) {
#  302|   			if (snd_config_get_integer(cfg, &dev) < 0) {
#  303|   				snd_error(CONTROL, "(%s) device must be an integer", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
alsa-lib-1.2.15.1/src/control/namehint.c:302:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  300|   	    strcmp(str, "hw") == 0) {
#  301|   		if (snd_config_search(cfg1, "device", &cfg) >= 0) {
#  302|-> 			if (snd_config_get_integer(cfg, &dev) < 0) {
#  303|   				snd_error(CONTROL, "(%s) device must be an integer", buf);
#  304|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
alsa-lib-1.2.15.1/src/control/namehint.c:302:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  300|   	    strcmp(str, "hw") == 0) {
#  301|   		if (snd_config_search(cfg1, "device", &cfg) >= 0) {
#  302|-> 			if (snd_config_get_integer(cfg, &dev) < 0) {
#  303|   				snd_error(CONTROL, "(%s) device must be an integer", buf);
#  304|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
alsa-lib-1.2.15.1/src/control/namehint.c:303:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  301|   		if (snd_config_search(cfg1, "device", &cfg) >= 0) {
#  302|   			if (snd_config_get_integer(cfg, &dev) < 0) {
#  303|-> 				snd_error(CONTROL, "(%s) device must be an integer", buf);
#  304|   				err = -EINVAL;
#  305|   				goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
alsa-lib-1.2.15.1/src/control/namehint.c:303:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  301|   		if (snd_config_search(cfg1, "device", &cfg) >= 0) {
#  302|   			if (snd_config_get_integer(cfg, &dev) < 0) {
#  303|-> 				snd_error(CONTROL, "(%s) device must be an integer", buf);
#  304|   				err = -EINVAL;
#  305|   				goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
alsa-lib-1.2.15.1/src/control/namehint.c:310:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  308|   	}
#  309|   
#  310|-> 	if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
#  311|   		if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
#  312|   			snd_error(CONTROL, "hint (%s) must be a compound", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
alsa-lib-1.2.15.1/src/control/namehint.c:310:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  308|   	}
#  309|   
#  310|-> 	if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
#  311|   		if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
#  312|   			snd_error(CONTROL, "hint (%s) must be a compound", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
alsa-lib-1.2.15.1/src/control/namehint.c:311:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  309|   
#  310|   	if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
#  311|-> 		if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
#  312|   			snd_error(CONTROL, "hint (%s) must be a compound", buf);
#  313|   			err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
alsa-lib-1.2.15.1/src/control/namehint.c:311:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  309|   
#  310|   	if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
#  311|-> 		if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
#  312|   			snd_error(CONTROL, "hint (%s) must be a compound", buf);
#  313|   			err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
alsa-lib-1.2.15.1/src/control/namehint.c:312:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  310|   	if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
#  311|   		if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
#  312|-> 			snd_error(CONTROL, "hint (%s) must be a compound", buf);
#  313|   			err = -EINVAL;
#  314|   			goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
alsa-lib-1.2.15.1/src/control/namehint.c:312:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  310|   	if (snd_config_search(cfg1, "hint", &cfg) >= 0) {
#  311|   		if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
#  312|-> 			snd_error(CONTROL, "hint (%s) must be a compound", buf);
#  313|   			err = -EINVAL;
#  314|   			goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
alsa-lib-1.2.15.1/src/control/namehint.c:317:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  315|   		}
#  316|   		if (list->card < 0 &&
#  317|-> 		    snd_config_search(cfg, "omit_noargs", &n) >= 0 &&
#  318|   		    snd_config_get_bool(n) > 0)
#  319|   			goto __skip_add;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
alsa-lib-1.2.15.1/src/control/namehint.c:317:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  315|   		}
#  316|   		if (list->card < 0 &&
#  317|-> 		    snd_config_search(cfg, "omit_noargs", &n) >= 0 &&
#  318|   		    snd_config_get_bool(n) > 0)
#  319|   			goto __skip_add;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
alsa-lib-1.2.15.1/src/control/namehint.c:318:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  316|   		if (list->card < 0 &&
#  317|   		    snd_config_search(cfg, "omit_noargs", &n) >= 0 &&
#  318|-> 		    snd_config_get_bool(n) > 0)
#  319|   			goto __skip_add;
#  320|   		if (level == 1 &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
alsa-lib-1.2.15.1/src/control/namehint.c:318:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  316|   		if (list->card < 0 &&
#  317|   		    snd_config_search(cfg, "omit_noargs", &n) >= 0 &&
#  318|-> 		    snd_config_get_bool(n) > 0)
#  319|   			goto __skip_add;
#  320|   		if (level == 1 &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
alsa-lib-1.2.15.1/src/control/namehint.c:321:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  319|   			goto __skip_add;
#  320|   		if (level == 1 &&
#  321|-> 		    snd_config_search(cfg, "show", &n) >= 0 &&
#  322|   		    snd_config_get_bool(n) <= 0)
#  323|   			goto __skip_add;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
alsa-lib-1.2.15.1/src/control/namehint.c:322:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  320|   		if (level == 1 &&
#  321|   		    snd_config_search(cfg, "show", &n) >= 0 &&
#  322|-> 		    snd_config_get_bool(n) <= 0)
#  323|   			goto __skip_add;
#  324|   		if (buf1 == NULL &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
alsa-lib-1.2.15.1/src/control/namehint.c:325:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  323|   			goto __skip_add;
#  324|   		if (buf1 == NULL &&
#  325|-> 		    snd_config_search(cfg, "description", &n) >= 0 &&
#  326|   		    snd_config_get_string(n, &str) >= 0) {
#  327|   			buf1 = strdup(str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
alsa-lib-1.2.15.1/src/control/namehint.c:326:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  324|   		if (buf1 == NULL &&
#  325|   		    snd_config_search(cfg, "description", &n) >= 0 &&
#  326|-> 		    snd_config_get_string(n, &str) >= 0) {
#  327|   			buf1 = strdup(str);
#  328|   			if (buf1 == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
alsa-lib-1.2.15.1/src/control/namehint.c:333:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  331|   			}
#  332|   		}
#  333|-> 		if (snd_config_search(cfg, "device", &n) >= 0) {
#  334|   			if (snd_config_get_integer(n, &dev) < 0) {
#  335|   				snd_error(CONTROL, "(%s) device must be an integer", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
alsa-lib-1.2.15.1/src/control/namehint.c:333:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  331|   			}
#  332|   		}
#  333|-> 		if (snd_config_search(cfg, "device", &n) >= 0) {
#  334|   			if (snd_config_get_integer(n, &dev) < 0) {
#  335|   				snd_error(CONTROL, "(%s) device must be an integer", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
alsa-lib-1.2.15.1/src/control/namehint.c:334:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  332|   		}
#  333|   		if (snd_config_search(cfg, "device", &n) >= 0) {
#  334|-> 			if (snd_config_get_integer(n, &dev) < 0) {
#  335|   				snd_error(CONTROL, "(%s) device must be an integer", buf);
#  336|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
alsa-lib-1.2.15.1/src/control/namehint.c:334:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  332|   		}
#  333|   		if (snd_config_search(cfg, "device", &n) >= 0) {
#  334|-> 			if (snd_config_get_integer(n, &dev) < 0) {
#  335|   				snd_error(CONTROL, "(%s) device must be an integer", buf);
#  336|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
alsa-lib-1.2.15.1/src/control/namehint.c:335:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  333|   		if (snd_config_search(cfg, "device", &n) >= 0) {
#  334|   			if (snd_config_get_integer(n, &dev) < 0) {
#  335|-> 				snd_error(CONTROL, "(%s) device must be an integer", buf);
#  336|   				err = -EINVAL;
#  337|   				goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
alsa-lib-1.2.15.1/src/control/namehint.c:335:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  333|   		if (snd_config_search(cfg, "device", &n) >= 0) {
#  334|   			if (snd_config_get_integer(n, &dev) < 0) {
#  335|-> 				snd_error(CONTROL, "(%s) device must be an integer", buf);
#  336|   				err = -EINVAL;
#  337|   				goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
alsa-lib-1.2.15.1/src/control/namehint.c:342:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  340|   			list->device_output = dev;
#  341|   		}
#  342|-> 		if (snd_config_search(cfg, "device_input", &n) >= 0) {
#  343|   			if (snd_config_get_integer(n, &list->device_input) < 0) {
#  344|   				snd_error(CONTROL, "(%s) device_input must be an integer", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
alsa-lib-1.2.15.1/src/control/namehint.c:342:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  340|   			list->device_output = dev;
#  341|   		}
#  342|-> 		if (snd_config_search(cfg, "device_input", &n) >= 0) {
#  343|   			if (snd_config_get_integer(n, &list->device_input) < 0) {
#  344|   				snd_error(CONTROL, "(%s) device_input must be an integer", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
alsa-lib-1.2.15.1/src/control/namehint.c:343:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  341|   		}
#  342|   		if (snd_config_search(cfg, "device_input", &n) >= 0) {
#  343|-> 			if (snd_config_get_integer(n, &list->device_input) < 0) {
#  344|   				snd_error(CONTROL, "(%s) device_input must be an integer", buf);
#  345|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
alsa-lib-1.2.15.1/src/control/namehint.c:343:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  341|   		}
#  342|   		if (snd_config_search(cfg, "device_input", &n) >= 0) {
#  343|-> 			if (snd_config_get_integer(n, &list->device_input) < 0) {
#  344|   				snd_error(CONTROL, "(%s) device_input must be an integer", buf);
#  345|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
alsa-lib-1.2.15.1/src/control/namehint.c:344:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  342|   		if (snd_config_search(cfg, "device_input", &n) >= 0) {
#  343|   			if (snd_config_get_integer(n, &list->device_input) < 0) {
#  344|-> 				snd_error(CONTROL, "(%s) device_input must be an integer", buf);
#  345|   				err = -EINVAL;
#  346|   				goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
alsa-lib-1.2.15.1/src/control/namehint.c:344:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  342|   		if (snd_config_search(cfg, "device_input", &n) >= 0) {
#  343|   			if (snd_config_get_integer(n, &list->device_input) < 0) {
#  344|-> 				snd_error(CONTROL, "(%s) device_input must be an integer", buf);
#  345|   				err = -EINVAL;
#  346|   				goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
alsa-lib-1.2.15.1/src/control/namehint.c:352:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  350|   				list->device_output = DEV_SKIP;
#  351|   		}
#  352|-> 		if (snd_config_search(cfg, "device_output", &n) >= 0) {
#  353|   			if (snd_config_get_integer(n, &list->device_output) < 0) {
#  354|   				snd_error(CONTROL, "(%s) device_output must be an integer", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
alsa-lib-1.2.15.1/src/control/namehint.c:352:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  350|   				list->device_output = DEV_SKIP;
#  351|   		}
#  352|-> 		if (snd_config_search(cfg, "device_output", &n) >= 0) {
#  353|   			if (snd_config_get_integer(n, &list->device_output) < 0) {
#  354|   				snd_error(CONTROL, "(%s) device_output must be an integer", buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
alsa-lib-1.2.15.1/src/control/namehint.c:353:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  351|   		}
#  352|   		if (snd_config_search(cfg, "device_output", &n) >= 0) {
#  353|-> 			if (snd_config_get_integer(n, &list->device_output) < 0) {
#  354|   				snd_error(CONTROL, "(%s) device_output must be an integer", buf);
#  355|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
alsa-lib-1.2.15.1/src/control/namehint.c:353:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  351|   		}
#  352|   		if (snd_config_search(cfg, "device_output", &n) >= 0) {
#  353|-> 			if (snd_config_get_integer(n, &list->device_output) < 0) {
#  354|   				snd_error(CONTROL, "(%s) device_output must be an integer", buf);
#  355|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
alsa-lib-1.2.15.1/src/control/namehint.c:354:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  352|   		if (snd_config_search(cfg, "device_output", &n) >= 0) {
#  353|   			if (snd_config_get_integer(n, &list->device_output) < 0) {
#  354|-> 				snd_error(CONTROL, "(%s) device_output must be an integer", buf);
#  355|   				err = -EINVAL;
#  356|   				goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
alsa-lib-1.2.15.1/src/control/namehint.c:354:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  352|   		if (snd_config_search(cfg, "device_output", &n) >= 0) {
#  353|   			if (snd_config_get_integer(n, &list->device_output) < 0) {
#  354|-> 				snd_error(CONTROL, "(%s) device_output must be an integer", buf);
#  355|   				err = -EINVAL;
#  356|   				goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
alsa-lib-1.2.15.1/src/control/namehint.c:364:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  362|   	} else if (level == 1 && !list->show_all)
#  363|   		goto __skip_add;
#  364|-> 	if (snd_config_search(cfg1, "slave", &cfg) >= 0 &&
#  365|   	    snd_config_search(cfg, base, &cfg1) >= 0)
#  366|   		goto __hint;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
alsa-lib-1.2.15.1/src/control/namehint.c:364:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  362|   	} else if (level == 1 && !list->show_all)
#  363|   		goto __skip_add;
#  364|-> 	if (snd_config_search(cfg1, "slave", &cfg) >= 0 &&
#  365|   	    snd_config_search(cfg, base, &cfg1) >= 0)
#  366|   		goto __hint;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
alsa-lib-1.2.15.1/src/control/namehint.c:365:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  363|   		goto __skip_add;
#  364|   	if (snd_config_search(cfg1, "slave", &cfg) >= 0 &&
#  365|-> 	    snd_config_search(cfg, base, &cfg1) >= 0)
#  366|   		goto __hint;
#  367|   	snd_config_delete(res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
alsa-lib-1.2.15.1/src/control/namehint.c:365:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  363|   		goto __skip_add;
#  364|   	if (snd_config_search(cfg1, "slave", &cfg) >= 0 &&
#  365|-> 	    snd_config_search(cfg, base, &cfg1) >= 0)
#  366|   		goto __hint;
#  367|   	snd_config_delete(res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
alsa-lib-1.2.15.1/src/control/namehint.c:367:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  365|   	    snd_config_search(cfg, base, &cfg1) >= 0)
#  366|   		goto __hint;
#  367|-> 	snd_config_delete(res);
#  368|   	res = NULL;
#  369|   	cleanup_res = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
alsa-lib-1.2.15.1/src/control/namehint.c:367:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  365|   	    snd_config_search(cfg, base, &cfg1) >= 0)
#  366|   		goto __hint;
#  367|-> 	snd_config_delete(res);
#  368|   	res = NULL;
#  369|   	cleanup_res = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
alsa-lib-1.2.15.1/src/control/namehint.c:374:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  372|   	/* find, if all parameters have a default, */
#  373|   	/* otherwise filter this definition */
#  374|-> 	eh = snd_lib_log_set_local(&zero_handler);
#  375|   	err = snd_config_search_alias_hooks(config, base, buf, &res);
#  376|   	snd_lib_log_set_local(eh);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
alsa-lib-1.2.15.1/src/control/namehint.c:374:14: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  372|   	/* find, if all parameters have a default, */
#  373|   	/* otherwise filter this definition */
#  374|-> 	eh = snd_lib_log_set_local(&zero_handler);
#  375|   	err = snd_config_search_alias_hooks(config, base, buf, &res);
#  376|   	snd_lib_log_set_local(eh);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
alsa-lib-1.2.15.1/src/control/namehint.c:375:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  373|   	/* otherwise filter this definition */
#  374|   	eh = snd_lib_log_set_local(&zero_handler);
#  375|-> 	err = snd_config_search_alias_hooks(config, base, buf, &res);
#  376|   	snd_lib_log_set_local(eh);
#  377|   	if (err < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
alsa-lib-1.2.15.1/src/control/namehint.c:375:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  373|   	/* otherwise filter this definition */
#  374|   	eh = snd_lib_log_set_local(&zero_handler);
#  375|-> 	err = snd_config_search_alias_hooks(config, base, buf, &res);
#  376|   	snd_lib_log_set_local(eh);
#  377|   	if (err < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
alsa-lib-1.2.15.1/src/control/namehint.c:376:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  374|   	eh = snd_lib_log_set_local(&zero_handler);
#  375|   	err = snd_config_search_alias_hooks(config, base, buf, &res);
#  376|-> 	snd_lib_log_set_local(eh);
#  377|   	if (err < 0)
#  378|   		goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
alsa-lib-1.2.15.1/src/control/namehint.c:376:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  374|   	eh = snd_lib_log_set_local(&zero_handler);
#  375|   	err = snd_config_search_alias_hooks(config, base, buf, &res);
#  376|-> 	snd_lib_log_set_local(eh);
#  377|   	if (err < 0)
#  378|   		goto __cleanup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
alsa-lib-1.2.15.1/src/control/namehint.c:379:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  377|   	if (err < 0)
#  378|   		goto __cleanup;
#  379|-> 	if (snd_config_search(res, "@args", &cfg) >= 0) {
#  380|   		snd_config_for_each(i, next, cfg) {
#  381|   			/* skip the argument list */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
alsa-lib-1.2.15.1/src/control/namehint.c:379:13: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  377|   	if (err < 0)
#  378|   		goto __cleanup;
#  379|-> 	if (snd_config_search(res, "@args", &cfg) >= 0) {
#  380|   		snd_config_for_each(i, next, cfg) {
#  381|   			/* skip the argument list */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
alsa-lib-1.2.15.1/src/control/namehint.c:380:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  378|   		goto __cleanup;
#  379|   	if (snd_config_search(res, "@args", &cfg) >= 0) {
#  380|-> 		snd_config_for_each(i, next, cfg) {
#  381|   			/* skip the argument list */
#  382|   			if (snd_config_get_id(snd_config_iterator_entry(i), &str) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
alsa-lib-1.2.15.1/src/control/namehint.c:380:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  378|   		goto __cleanup;
#  379|   	if (snd_config_search(res, "@args", &cfg) >= 0) {
#  380|-> 		snd_config_for_each(i, next, cfg) {
#  381|   			/* skip the argument list */
#  382|   			if (snd_config_get_id(snd_config_iterator_entry(i), &str) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
alsa-lib-1.2.15.1/src/control/namehint.c:382:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  380|   		snd_config_for_each(i, next, cfg) {
#  381|   			/* skip the argument list */
#  382|-> 			if (snd_config_get_id(snd_config_iterator_entry(i), &str) < 0)
#  383|   				continue;
#  384|   			while (*str && *str >= '0' && *str <= '9') str++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
alsa-lib-1.2.15.1/src/control/namehint.c:382:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  380|   		snd_config_for_each(i, next, cfg) {
#  381|   			/* skip the argument list */
#  382|-> 			if (snd_config_get_id(snd_config_iterator_entry(i), &str) < 0)
#  383|   				continue;
#  384|   			while (*str && *str >= '0' && *str <= '9') str++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
alsa-lib-1.2.15.1/src/control/namehint.c:382:47: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  380|   		snd_config_for_each(i, next, cfg) {
#  381|   			/* skip the argument list */
#  382|-> 			if (snd_config_get_id(snd_config_iterator_entry(i), &str) < 0)
#  383|   				continue;
#  384|   			while (*str && *str >= '0' && *str <= '9') str++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
alsa-lib-1.2.15.1/src/control/namehint.c:382:47: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  380|   		snd_config_for_each(i, next, cfg) {
#  381|   			/* skip the argument list */
#  382|-> 			if (snd_config_get_id(snd_config_iterator_entry(i), &str) < 0)
#  383|   				continue;
#  384|   			while (*str && *str >= '0' && *str <= '9') str++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
alsa-lib-1.2.15.1/src/control/namehint.c:388:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  386|   				continue;
#  387|   			/* the argument definition must have the default */
#  388|-> 			if (snd_config_search(snd_config_iterator_entry(i),
#  389|   					      "default", NULL) < 0) {
#  390|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
alsa-lib-1.2.15.1/src/control/namehint.c:388:29: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  386|   				continue;
#  387|   			/* the argument definition must have the default */
#  388|-> 			if (snd_config_search(snd_config_iterator_entry(i),
#  389|   					      "default", NULL) < 0) {
#  390|   				err = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
alsa-lib-1.2.15.1/src/control/namehint.c:426:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/control/namehint.c:585:5: enter_function: entry to 'snd_device_name_hint'
alsa-lib-1.2.15.1/src/control/namehint.c:595:12: branch_false: following 'false' branch (when 'hints' is non-NULL)...
alsa-lib-1.2.15.1/src/control/namehint.c:597:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:598:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:600:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:601:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:603:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:627:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:628:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:629:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/namehint.c:630:31: call_function: calling 'add_card' from 'snd_device_name_hint'
#  424|         __skip_add:
#  425|   	if (res && cleanup_res)
#  426|-> 		snd_config_delete(res);
#  427|   	if (buf1)
#  428|   		free(buf1);

Error: CPPCHECK_WARNING (CWE-562): [#def156]
alsa-lib-1.2.15.1/src/control/namehint.c:459: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  457|   	int device, max_device = 0;
#  458|   
#  459|-> 	list->info = &info;
#  460|   	err = snd_config_search(config, list->siface, &conf);
#  461|   	if (err < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
alsa-lib-1.2.15.1/src/control/setup.c:416:15: warning[-Wanalyzer-malloc-leak]: leak of 'h'
alsa-lib-1.2.15.1/src/control/setup.c:604:5: enter_function: entry to 'snd_sctl_build'
alsa-lib-1.2.15.1/src/control/setup.c:610:9: branch_true: following 'true' branch (when 'sctl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: following 'true' branch (when 'handle' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: following 'true' branch (when 'conf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:613:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:614:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/setup.c:616:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:616:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/setup.c:617:12: branch_false: following 'false' branch (when 'h' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:623:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:626:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/setup.c:627:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:628:23: call_function: calling 'add_elem' from 'snd_sctl_build'
#  414|   	snd_sctl_elem_t *elem = NULL;
#  415|   	int err;
#  416|-> 	err = snd_config_expand(_conf, _conf, NULL, private_data, &conf);
#  417|   	if (err < 0)
#  418|   		return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
alsa-lib-1.2.15.1/src/control/setup.c:419:9: warning[-Wanalyzer-malloc-leak]: leak of 'h'
alsa-lib-1.2.15.1/src/control/setup.c:604:5: enter_function: entry to 'snd_sctl_build'
alsa-lib-1.2.15.1/src/control/setup.c:610:9: branch_true: following 'true' branch (when 'sctl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: following 'true' branch (when 'handle' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: following 'true' branch (when 'conf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:613:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:614:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/setup.c:616:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:616:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/setup.c:617:12: branch_false: following 'false' branch (when 'h' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:623:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:626:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/setup.c:627:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:628:23: call_function: calling 'add_elem' from 'snd_sctl_build'
#  417|   	if (err < 0)
#  418|   		return err;
#  419|-> 	snd_config_for_each(i, next, conf) {
#  420|   		snd_config_t *n = snd_config_iterator_entry(i);
#  421|   		const char *id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
alsa-lib-1.2.15.1/src/control/setup.c:420:35: warning[-Wanalyzer-malloc-leak]: leak of 'h'
alsa-lib-1.2.15.1/src/control/setup.c:604:5: enter_function: entry to 'snd_sctl_build'
alsa-lib-1.2.15.1/src/control/setup.c:610:9: branch_true: following 'true' branch (when 'sctl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: following 'true' branch (when 'handle' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: following 'true' branch (when 'conf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:613:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:614:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/setup.c:616:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:616:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/setup.c:617:12: branch_false: following 'false' branch (when 'h' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:623:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:626:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/setup.c:627:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:628:23: call_function: calling 'add_elem' from 'snd_sctl_build'
#  418|   		return err;
#  419|   	snd_config_for_each(i, next, conf) {
#  420|-> 		snd_config_t *n = snd_config_iterator_entry(i);
#  421|   		const char *id;
#  422|   		if (snd_config_get_id(n, &id) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
alsa-lib-1.2.15.1/src/control/setup.c:422:21: warning[-Wanalyzer-malloc-leak]: leak of 'h'
alsa-lib-1.2.15.1/src/control/setup.c:604:5: enter_function: entry to 'snd_sctl_build'
alsa-lib-1.2.15.1/src/control/setup.c:610:9: branch_true: following 'true' branch (when 'sctl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: following 'true' branch (when 'handle' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: following 'true' branch (when 'conf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:613:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:614:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/setup.c:616:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:616:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/setup.c:617:12: branch_false: following 'false' branch (when 'h' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:623:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:626:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/setup.c:627:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:628:23: call_function: calling 'add_elem' from 'snd_sctl_build'
#  420|   		snd_config_t *n = snd_config_iterator_entry(i);
#  421|   		const char *id;
#  422|-> 		if (snd_config_get_id(n, &id) < 0)
#  423|   			continue;
#  424|   		if (strcmp(id, "comment") == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
alsa-lib-1.2.15.1/src/control/setup.c:626:9: warning[-Wanalyzer-malloc-leak]: leak of 'h'
alsa-lib-1.2.15.1/src/control/setup.c:610:9: branch_true: following 'true' branch (when 'sctl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: following 'true' branch (when 'handle' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: following 'true' branch (when 'conf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:613:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:614:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/setup.c:616:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:616:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/setup.c:617:12: branch_false: following 'false' branch (when 'h' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:623:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:626:9: throw: if 'snd_config_iterator_first' throws an exception...
alsa-lib-1.2.15.1/src/control/setup.c:626:9: danger: 'h' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  624|   	h->ctl = handle;
#  625|   	INIT_LIST_HEAD(&h->elems);
#  626|-> 	snd_config_for_each(i, next, conf) {
#  627|   		snd_config_t *n = snd_config_iterator_entry(i);
#  628|   		err = add_elem(h, n, private_data, &quit);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
alsa-lib-1.2.15.1/src/control/setup.c:627:35: warning[-Wanalyzer-malloc-leak]: leak of 'h'
alsa-lib-1.2.15.1/src/control/setup.c:610:9: branch_true: following 'true' branch (when 'sctl' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:611:9: branch_true: following 'true' branch (when 'handle' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:612:9: branch_true: following 'true' branch (when 'conf' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:613:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:614:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/control/setup.c:616:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:616:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/control/setup.c:617:12: branch_false: following 'false' branch (when 'h' is non-NULL)...
alsa-lib-1.2.15.1/src/control/setup.c:623:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:626:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/control/setup.c:627:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/control/setup.c:627:35: throw: if 'snd_config_iterator_entry' throws an exception...
alsa-lib-1.2.15.1/src/control/setup.c:627:35: danger: 'h' leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  625|   	INIT_LIST_HEAD(&h->elems);
#  626|   	snd_config_for_each(i, next, conf) {
#  627|-> 		snd_config_t *n = snd_config_iterator_entry(i);
#  628|   		err = add_elem(h, n, private_data, &quit);
#  629|   		if (err < 0) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def163]
alsa-lib-1.2.15.1/src/error.c:352:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
alsa-lib-1.2.15.1/src/error.c:351:9: acquire_resource: 'va_start' called here
alsa-lib-1.2.15.1/src/error.c:352:9: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/error.c:352:9: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  350|   	va_list arg;
#  351|   	va_start(arg, fmt);
#  352|-> 	snd_lib_vlog(prio, interface, file, line, function, errcode, fmt, arg);
#  353|   	va_end(arg);
#  354|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def164]
alsa-lib-1.2.15.1/src/error.c:377:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
alsa-lib-1.2.15.1/src/error.c:373:9: acquire_resource: 'va_start' called here
alsa-lib-1.2.15.1/src/error.c:375:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/error.c:377:9: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/error.c:377:9: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  375|   	if (! verbose || ! *verbose)
#  376|   		goto finish;
#  377|-> 	snd_lib_vlog(SND_LOG_ERROR, interface, file, line, function, errcode, fmt, arg);
#  378|   #ifdef ALSA_DEBUG_ASSERT
#  379|   	verbose = getenv("LIBASOUND_DEBUG_ASSERT");

Error: GCC_ANALYZER_WARNING (CWE-404): [#def165]
alsa-lib-1.2.15.1/src/error.c:442:9: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
alsa-lib-1.2.15.1/src/error.c:441:9: acquire_resource: 'va_start' called here
alsa-lib-1.2.15.1/src/error.c:442:9: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/error.c:442:9: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  440|   	va_list arg;
#  441|   	va_start(arg, fmt);
#  442|-> 	snd_lib_vlog(SND_LOG_ERROR, 0, file, line, function, errcode, fmt, arg);
#  443|   	va_end(arg);
#  444|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def166]
alsa-lib-1.2.15.1/src/input.c:79:18: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
alsa-lib-1.2.15.1/src/input.c:78:9: acquire_resource: 'va_start' called here
alsa-lib-1.2.15.1/src/input.c:79:18: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/input.c:79:18: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   77|   	va_list args;
#   78|   	va_start(args, format);
#   79|-> 	result = input->ops->scan(input, format, args);
#   80|   	va_end(args);
#   81|   	return result;

Error: CPPCHECK_WARNING (CWE-401): [#def167]
alsa-lib-1.2.15.1/src/mixer/bag.c:52: error[memleak]: Memory leak: b
#   50|   	b->ptr = ptr;
#   51|   	list_add_tail(&b->list, bag);
#   52|-> 	return 0;
#   53|   }
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
alsa-lib-1.2.15.1/src/mixer/mixer.c:243:15: warning[-Wanalyzer-malloc-leak]: leak of 'slave'
alsa-lib-1.2.15.1/src/mixer/mixer.c:237:9: branch_true: following 'true' branch (when 'hctl' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/mixer.c:238:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:238:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/mixer.c:239:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/mixer.c:243:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:243:15: throw: if 'snd_hctl_nonblock' throws an exception...
alsa-lib-1.2.15.1/src/mixer/mixer.c:243:15: danger: 'slave' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  241|   		return -ENOMEM;
#  242|   	}
#  243|-> 	err = snd_hctl_nonblock(hctl, 1);
#  244|   	if (err < 0) {
#  245|   		snd_hctl_close(hctl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
alsa-lib-1.2.15.1/src/mixer/mixer.c:245:17: warning[-Wanalyzer-malloc-leak]: leak of 'slave'
alsa-lib-1.2.15.1/src/mixer/mixer.c:237:9: branch_true: following 'true' branch (when 'hctl' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/mixer.c:238:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:238:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/mixer.c:239:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/mixer.c:243:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:244:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/mixer/mixer.c:245:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:245:17: throw: if 'snd_hctl_close' throws an exception...
alsa-lib-1.2.15.1/src/mixer/mixer.c:245:17: danger: 'slave' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  243|   	err = snd_hctl_nonblock(hctl, 1);
#  244|   	if (err < 0) {
#  245|-> 		snd_hctl_close(hctl);
#  246|   		free(slave);
#  247|   		return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
alsa-lib-1.2.15.1/src/mixer/mixer.c:249:9: warning[-Wanalyzer-malloc-leak]: leak of 'slave'
alsa-lib-1.2.15.1/src/mixer/mixer.c:237:9: branch_true: following 'true' branch (when 'hctl' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/mixer.c:238:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:238:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/mixer.c:239:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/mixer.c:243:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:244:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/mixer.c:249:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:249:9: throw: if 'snd_hctl_set_callback' throws an exception...
alsa-lib-1.2.15.1/src/mixer/mixer.c:249:9: danger: 'slave' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  247|   		return err;
#  248|   	}
#  249|-> 	snd_hctl_set_callback(hctl, hctl_event_handler);
#  250|   	snd_hctl_set_callback_private(hctl, mixer);
#  251|   	slave->hctl = hctl;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
alsa-lib-1.2.15.1/src/mixer/mixer.c:250:9: warning[-Wanalyzer-malloc-leak]: leak of 'slave'
alsa-lib-1.2.15.1/src/mixer/mixer.c:237:9: branch_true: following 'true' branch (when 'hctl' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/mixer.c:238:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:238:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/mixer.c:239:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/mixer.c:243:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:244:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/mixer.c:249:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/mixer.c:250:9: throw: if 'snd_hctl_set_callback_private' throws an exception...
alsa-lib-1.2.15.1/src/mixer/mixer.c:250:9: danger: 'slave' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  248|   	}
#  249|   	snd_hctl_set_callback(hctl, hctl_event_handler);
#  250|-> 	snd_hctl_set_callback_private(hctl, mixer);
#  251|   	slave->hctl = hctl;
#  252|   	list_add_tail(&slave->list, &mixer->slaves);

Error: CPPCHECK_WARNING (CWE-401): [#def172]
alsa-lib-1.2.15.1/src/mixer/mixer.c:253: error[memleak]: Memory leak: slave
#  251|   	slave->hctl = hctl;
#  252|   	list_add_tail(&slave->list, &mixer->slaves);
#  253|-> 	return 0;
#  254|   }
#  255|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:83:13: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:72:12: branch_false: following 'false' branch (when 'lib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:74:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:77:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:78:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:80:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:83:13: throw: if '__snd_dlopen' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:83:13: danger: 'xlib' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   81|   	strcat(xlib, "/");
#   82|   	strcat(xlib, lib);
#   83|-> 	h = INTERNAL(snd_dlopen)(xlib, RTLD_NOW, errbuf, sizeof(errbuf));
#   84|   	if (h == NULL) {
#   85|   		snd_error(MIXER, "Unable to open library '%s' (%s)", xlib, errbuf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:85:17: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:72:12: branch_false: following 'false' branch (when 'lib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:74:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:77:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:78:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:80:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:84:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:85:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:85:17: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:85:17: danger: 'xlib' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   83|   	h = INTERNAL(snd_dlopen)(xlib, RTLD_NOW, errbuf, sizeof(errbuf));
#   84|   	if (h == NULL) {
#   85|-> 		snd_error(MIXER, "Unable to open library '%s' (%s)", xlib, errbuf);
#   86|   		free(xlib);
#   87|   		return -ENXIO;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:90:22: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:72:12: branch_false: following 'false' branch (when 'lib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:74:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:77:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:78:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:80:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:84:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:89:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:90:22: throw: if 'snd_dlsym' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:90:22: danger: 'xlib' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   88|   	}
#   89|   	priv->dlhandle = h;
#   90|-> 	event_func = snd_dlsym(h, "alsa_mixer_simple_event", NULL);
#   91|   	if (event_func == NULL) {
#   92|   		snd_error(MIXER, "Symbol 'alsa_mixer_simple_event' was not found in '%s'", xlib);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:92:17: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:72:12: branch_false: following 'false' branch (when 'lib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:74:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:77:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:78:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:80:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:84:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:89:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:91:12: branch_true: following 'true' branch (when 'event_func' is NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:92:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:92:17: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:92:17: danger: 'xlib' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   90|   	event_func = snd_dlsym(h, "alsa_mixer_simple_event", NULL);
#   91|   	if (event_func == NULL) {
#   92|-> 		snd_error(MIXER, "Symbol 'alsa_mixer_simple_event' was not found in '%s'", xlib);
#   93|   		err = -ENXIO;
#   94|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:96:29: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:72:12: branch_false: following 'false' branch (when 'lib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:74:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:77:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:78:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:80:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:84:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:89:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:91:12: branch_false: following 'false' branch (when 'event_func' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:96:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:96:29: throw: if 'snd_dlsym' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:96:29: danger: 'xlib' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   94|   	}
#   95|   	if (err == 0) {
#   96|-> 		init_func = snd_dlsym(h, "alsa_mixer_simple_init", NULL);
#   97|   		if (init_func == NULL) {
#   98|   			snd_error(MIXER, "Symbol 'alsa_mixer_simple_init' was not found in '%s'", xlib);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:98:25: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:72:12: branch_false: following 'false' branch (when 'lib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:74:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:77:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:78:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:80:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:84:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:89:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:91:12: branch_false: following 'false' branch (when 'event_func' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:96:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:97:20: branch_true: following 'true' branch (when 'init_func' is NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:98:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:98:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:98:25: danger: 'xlib' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   96|   		init_func = snd_dlsym(h, "alsa_mixer_simple_init", NULL);
#   97|   		if (init_func == NULL) {
#   98|-> 			snd_error(MIXER, "Symbol 'alsa_mixer_simple_init' was not found in '%s'", xlib);
#   99|   			err = -ENXIO;
#  100|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:130:13: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:130:13: throw: if '__snd_dlopen' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:130:13: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  128|   	strcat(xlib, lib);
#  129|   	/* note python modules requires RTLD_GLOBAL */
#  130|-> 	h = INTERNAL(snd_dlopen)(xlib, RTLD_NOW|RTLD_GLOBAL, errbuf, sizeof(errbuf));
#  131|   	if (h == NULL) {
#  132|   		snd_error(MIXER, "Unable to open library '%s'", xlib);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:132:17: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:131:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:132:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:132:17: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:132:17: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  130|   	h = INTERNAL(snd_dlopen)(xlib, RTLD_NOW|RTLD_GLOBAL, errbuf, sizeof(errbuf));
#  131|   	if (h == NULL) {
#  132|-> 		snd_error(MIXER, "Unable to open library '%s'", xlib);
#  133|   		free(xlib);
#  134|   		return -ENXIO;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:137:22: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:131:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:136:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:137:22: throw: if 'snd_dlsym' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:137:22: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  135|   	}
#  136|   	priv->dlhandle = h;
#  137|-> 	event_func = snd_dlsym(h, "alsa_mixer_simple_event", NULL);
#  138|   	if (event_func == NULL) {
#  139|   		snd_error(MIXER, "Symbol 'alsa_mixer_simple_event' was not found in '%s'", xlib);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:139:17: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:131:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:136:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:138:12: branch_true: following 'true' branch (when 'event_func' is NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:139:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:139:17: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:139:17: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  137|   	event_func = snd_dlsym(h, "alsa_mixer_simple_event", NULL);
#  138|   	if (event_func == NULL) {
#  139|-> 		snd_error(MIXER, "Symbol 'alsa_mixer_simple_event' was not found in '%s'", xlib);
#  140|   		err = -ENXIO;
#  141|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:143:29: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:131:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:136:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:138:12: branch_false: following 'false' branch (when 'event_func' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:143:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:143:29: throw: if 'snd_dlsym' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:143:29: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  141|   	}
#  142|   	if (err == 0) {
#  143|-> 		init_func = snd_dlsym(h, "alsa_mixer_simple_finit", NULL);
#  144|   		if (init_func == NULL) {
#  145|   			snd_error(MIXER, "Symbol 'alsa_mixer_simple_finit' was not found in '%s'", xlib);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:145:25: warning[-Wanalyzer-malloc-leak]: leak of 'xlib'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:123:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:124:12: branch_false: following 'false' branch (when 'xlib' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:126:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:131:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:136:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:138:12: branch_false: following 'false' branch (when 'event_func' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:143:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:144:20: branch_true: following 'true' branch (when 'init_func' is NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:145:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:145:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:145:25: danger: 'xlib' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  143|   		init_func = snd_dlsym(h, "alsa_mixer_simple_finit", NULL);
#  144|   		if (init_func == NULL) {
#  145|-> 			snd_error(MIXER, "Symbol 'alsa_mixer_simple_finit' was not found in '%s'", xlib);
#  146|   			err = -ENXIO;
#  147|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:13: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:275:30: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:281:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:13: throw: if 'snd_mixer_class_malloc' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:13: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  285|   		return -EINVAL;
#  286|   	}
#  287|-> 	if (snd_mixer_class_malloc(&class)) {
#  288|   		free(priv);
#  289|   		return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:281:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:291:24: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:291:24: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:292:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: throw: if 'snd_mixer_class_set_compare' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
#  295|   		return -ENOMEM;
#  296|   	}
#  297|-> 	snd_mixer_class_set_compare(class, snd_mixer_selem_compare);
#  298|   	snd_mixer_class_set_private(class, priv);
#  299|   	snd_mixer_class_set_private_free(class, private_free);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:275:30: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:281:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:291:24: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:292:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: throw: if 'snd_mixer_class_set_compare' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  295|   		return -ENOMEM;
#  296|   	}
#  297|-> 	snd_mixer_class_set_compare(class, snd_mixer_selem_compare);
#  298|   	snd_mixer_class_set_private(class, priv);
#  299|   	snd_mixer_class_set_private_free(class, private_free);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:298:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:281:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:291:24: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:291:24: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:292:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:298:9: throw: if 'snd_mixer_class_set_private' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:298:9: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
#  296|   	}
#  297|   	snd_mixer_class_set_compare(class, snd_mixer_selem_compare);
#  298|-> 	snd_mixer_class_set_private(class, priv);
#  299|   	snd_mixer_class_set_private_free(class, private_free);
#  300|   	file = getenv("ALSA_MIXER_SIMPLE");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:298:9: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:275:30: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:281:12: branch_false: following 'false' branch (when 'priv' is non-NULL)...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:283:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:287:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:291:24: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:292:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:297:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:298:9: throw: if 'snd_mixer_class_set_private' throws an exception...
alsa-lib-1.2.15.1/src/mixer/simple_abst.c:298:9: danger: 'priv' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  296|   	}
#  297|   	snd_mixer_class_set_compare(class, snd_mixer_selem_compare);
#  298|-> 	snd_mixer_class_set_private(class, priv);
#  299|   	snd_mixer_class_set_private_free(class, private_free);
#  300|   	file = getenv("ALSA_MIXER_SIMPLE");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
alsa-lib-1.2.15.1/src/mixer/simple_none.c:1543:23: warning[-Wanalyzer-malloc-leak]: leak of 'simple'
alsa-lib-1.2.15.1/src/mixer/simple_none.c:1686:12: enter_function: entry to 'simple_event'
alsa-lib-1.2.15.1/src/mixer/simple_none.c:1690:12: branch_false: following 'false' branch (when 'mask != 4294967295')...
alsa-lib-1.2.15.1/src/mixer/simple_none.c:1692:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_none.c:1692:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/mixer/simple_none.c:1693:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/mixer/simple_none.c:1693:23: call_function: calling 'simple_event_add' from 'simple_event'
# 1541|   		simple->selem.id = id;
# 1542|   		simple->selem.ops = &simple_none_ops;
# 1543|-> 		err = snd_mixer_elem_new(&melem, SND_MIXER_ELEM_SIMPLE,
# 1544|   			get_compare_weight(
# 1545|   				snd_mixer_selem_id_get_name(simple->selem.id),

Error: GCC_ANALYZER_WARNING (CWE-404): [#def191]
alsa-lib-1.2.15.1/src/output.c:76:18: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
alsa-lib-1.2.15.1/src/output.c:75:9: acquire_resource: 'va_start' called here
alsa-lib-1.2.15.1/src/output.c:76:18: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/output.c:76:18: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   74|   	va_list args;
#   75|   	va_start(args, format);
#   76|-> 	result = output->ops->print(output, format, args);
#   77|   	va_end(args);
#   78|   	return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
alsa-lib-1.2.15.1/src/output.c:271:16: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/output.c:274:12: enter_function: entry to 'snd_output_buffer_print'
alsa-lib-1.2.15.1/src/output.c:280:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/output.c:282:36: branch_false: ...to here
alsa-lib-1.2.15.1/src/output.c:283:9: branch_true: following 'true' branch (when 'result >= 0')...
alsa-lib-1.2.15.1/src/output.c:284:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/output.c:284:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/output.c:289:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/output.c:289:18: call_function: calling 'snd_output_buffer_need' from 'snd_output_buffer_print'
#  269|   	buffer->buf = buf;
#  270|   	buffer->alloc = alloc;
#  271|-> 	return buffer->alloc - buffer->size;
#  272|   }
#  273|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2668:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2650:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2655:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2668:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2668:21: throw: if 'snd1_dlobj_cache_get' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2668:21: danger: 'buf' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
# 2666|   	snd_pcm_open_symbols();	/* this call is for static linking only */
# 2667|   #endif
# 2668|-> 	open_func = snd_dlobj_cache_get(lib, open_name,
# 2669|   			SND_DLSYM_VERSION(SND_PCM_DLSYM_VERSION), 1);
# 2670|   	if (open_func) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2668:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2650:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2655:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2657:28: branch_false: following 'false' branch (when 'buf1' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2661:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2668:21: throw: if 'snd1_dlobj_cache_get' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2668:21: danger: 'buf1' leaks here; was allocated at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
# 2666|   	snd_pcm_open_symbols();	/* this call is for static linking only */
# 2667|   #endif
# 2668|-> 	open_func = snd_dlobj_cache_get(lib, open_name,
# 2669|   			SND_DLSYM_VERSION(SND_PCM_DLSYM_VERSION), 1);
# 2670|   	if (open_func) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2605:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2606:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2606:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2611:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2611:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2612:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2618:28: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2619:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2620:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2618:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2670:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: danger: 'buf' leaks here; was allocated at [(21)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/20)
# 2669|   			SND_DLSYM_VERSION(SND_PCM_DLSYM_VERSION), 1);
# 2670|   	if (open_func) {
# 2671|-> 		err = open_func(pcmp, name, pcm_root, pcm_conf, stream, mode);
# 2672|   		if (err >= 0) {
# 2673|   			if ((*pcmp)->open_func) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2650:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2655:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2657:28: branch_false: following 'false' branch (when 'buf1' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2661:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2670:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: throw: if the called function throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: danger: 'buf1' leaks here; was allocated at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
# 2669|   			SND_DLSYM_VERSION(SND_PCM_DLSYM_VERSION), 1);
# 2670|   	if (open_func) {
# 2671|-> 		err = open_func(pcmp, name, pcm_root, pcm_conf, stream, mode);
# 2672|   		if (err >= 0) {
# 2673|   			if ((*pcmp)->open_func) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2675:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2605:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2606:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2606:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2611:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2611:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2612:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2618:28: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2619:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2620:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2618:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2670:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2672:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2673:29: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2673:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2675:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2675:33: throw: if 'snd1_dlobj_cache_put' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2675:33: danger: 'buf' leaks here; was allocated at [(21)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/20)
# 2673|   			if ((*pcmp)->open_func) {
# 2674|   				/* only init plugin (like empty, asym) */
# 2675|-> 				snd_dlobj_cache_put(open_func);
# 2676|   			} else {
# 2677|   				(*pcmp)->open_func = open_func;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2675:33: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2650:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2655:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2657:28: branch_false: following 'false' branch (when 'buf1' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2661:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2670:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2672:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2673:29: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2673:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2675:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2675:33: throw: if 'snd1_dlobj_cache_put' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2675:33: danger: 'buf1' leaks here; was allocated at [(23)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/22)
# 2673|   			if ((*pcmp)->open_func) {
# 2674|   				/* only init plugin (like empty, asym) */
# 2675|-> 				snd_dlobj_cache_put(open_func);
# 2676|   			} else {
# 2677|   				(*pcmp)->open_func = open_func;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2681:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2605:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2606:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2606:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2611:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2611:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2612:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2618:28: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2619:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2620:36: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2618:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2670:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2681:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2681:25: throw: if 'snd1_dlobj_cache_put' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2681:25: danger: 'buf' leaks here; was allocated at [(21)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/20)
# 2679|   			err = 0;
# 2680|   		} else {
# 2681|-> 			snd_dlobj_cache_put(open_func);
# 2682|   		}
# 2683|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2681:25: warning[-Wanalyzer-malloc-leak]: leak of 'buf1'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2650:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2655:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2657:28: branch_false: following 'false' branch (when 'buf1' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2661:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2670:12: branch_true: following 'true' branch (when 'open_func' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2671:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2681:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2681:25: throw: if 'snd1_dlobj_cache_put' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2681:25: danger: 'buf1' leaks here; was allocated at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
# 2679|   			err = 0;
# 2680|   		} else {
# 2681|-> 			snd_dlobj_cache_put(open_func);
# 2682|   		}
# 2683|   	} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
alsa-lib-1.2.15.1/src/pcm/pcm.c:2706:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/pcm/pcm.c:2579:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2589:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2590:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2594:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2595:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2599:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2600:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2604:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2639:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2640:23: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2641:20: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2645:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2648:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2650:24: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:30: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2651:28: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2653:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2655:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2656:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2657:28: branch_true: following 'true' branch (when 'buf1' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2659:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2705:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2706:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:2706:17: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:2706:17: danger: 'buf' leaks here; was allocated at [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
# 2704|          _err:
# 2705|   	if (type_conf)
# 2706|-> 		snd_config_delete(type_conf);
# 2707|   	free(buf);
# 2708|   	free(buf1);

Error: CPPCHECK_WARNING (CWE-457): [#def202]
alsa-lib-1.2.15.1/src/pcm/pcm.c:5362: warning[uninitvar]: Uninitialized variable: *val
# 5360|   #endif
# 5361|   {
# 5362|-> 	unsigned int _val = *val;
# 5363|   	int err = snd_pcm_hw_param_get_min(params, SND_PCM_HW_PARAM_PERIOD_SIZE, &_val, dir);
# 5364|   	if (err >= 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def203]
alsa-lib-1.2.15.1/src/pcm/pcm.c:5362:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*val'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8114:1: enter_function: entry to '__old_snd_pcm_hw_params_get_period_size_min'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8114:1: call_function: calling '__snd_pcm_hw_params_get_period_size_min' from '__old_snd_pcm_hw_params_get_period_size_min'
# 5360|   #endif
# 5361|   {
# 5362|-> 	unsigned int _val = *val;
# 5363|   	int err = snd_pcm_hw_param_get_min(params, SND_PCM_HW_PARAM_PERIOD_SIZE, &_val, dir);
# 5364|   	if (err >= 0)

Error: CPPCHECK_WARNING (CWE-457): [#def204]
alsa-lib-1.2.15.1/src/pcm/pcm.c:5384: warning[uninitvar]: Uninitialized variable: *val
# 5382|   #endif
# 5383|   {
# 5384|-> 	unsigned int _val = *val;
# 5385|   	int err = snd_pcm_hw_param_get_max(params, SND_PCM_HW_PARAM_PERIOD_SIZE, &_val, dir);
# 5386|   	if (err >= 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def205]
alsa-lib-1.2.15.1/src/pcm/pcm.c:5384:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*val'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8123:1: enter_function: entry to '__old_snd_pcm_hw_params_get_period_size_max'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8123:1: call_function: calling '__snd_pcm_hw_params_get_period_size_max' from '__old_snd_pcm_hw_params_get_period_size_max'
# 5382|   #endif
# 5383|   {
# 5384|-> 	unsigned int _val = *val;
# 5385|   	int err = snd_pcm_hw_param_get_max(params, SND_PCM_HW_PARAM_PERIOD_SIZE, &_val, dir);
# 5386|   	if (err >= 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def206]
alsa-lib-1.2.15.1/src/pcm/pcm.c:8188:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'val'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8188:1: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8188:1: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8188:1: danger: use of uninitialized value 'val' here
# 8186|   __OLD_SET_FL1(snd_pcm_hw_params_set_buffer_time_first, unsigned int);
# 8187|   __OLD_SET_FL(snd_pcm_hw_params_set_buffer_size_first, snd_pcm_uframes_t);
# 8188|-> __OLD_SET_FL1(snd_pcm_hw_params_set_tick_time_first, unsigned int);
# 8189|   
# 8190|   __OLD_SET_FL(snd_pcm_hw_params_set_access_last, snd_pcm_access_t);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def207]
alsa-lib-1.2.15.1/src/pcm/pcm.c:8200:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'val'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8200:1: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8200:1: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8200:1: danger: use of uninitialized value 'val' here
# 8198|   __OLD_SET_FL1(snd_pcm_hw_params_set_buffer_time_last, unsigned int);
# 8199|   __OLD_SET_FL(snd_pcm_hw_params_set_buffer_size_last, snd_pcm_uframes_t);
# 8200|-> __OLD_SET_FL1(snd_pcm_hw_params_set_tick_time_last, unsigned int);
# 8201|   
# 8202|   #define __P_OLD_GET_SW(pfx, name, ret_type) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
alsa-lib-1.2.15.1/src/pcm/pcm.c:8730:9: warning[-Wanalyzer-malloc-leak]: leak of 'maps'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8717:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8721:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8725:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8726:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8730:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8730:9: throw: if 'snd_config_iterator_first' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8730:9: danger: 'maps' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
# 8728|   
# 8729|   	nums = 0;
# 8730|-> 	snd_config_for_each(i, next, conf) {
# 8731|   		snd_config_t *n = snd_config_iterator_entry(i);
# 8732|   		err = snd_config_get_string(n, &str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
alsa-lib-1.2.15.1/src/pcm/pcm.c:8731:35: warning[-Wanalyzer-malloc-leak]: leak of 'maps'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8717:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8721:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8725:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8726:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8730:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8730:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8731:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8731:35: throw: if 'snd_config_iterator_entry' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8731:35: danger: 'maps' leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 8729|   	nums = 0;
# 8730|   	snd_config_for_each(i, next, conf) {
# 8731|-> 		snd_config_t *n = snd_config_iterator_entry(i);
# 8732|   		err = snd_config_get_string(n, &str);
# 8733|   		if (err < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
alsa-lib-1.2.15.1/src/pcm/pcm.c:8732:23: warning[-Wanalyzer-malloc-leak]: leak of 'maps'
alsa-lib-1.2.15.1/src/pcm/pcm.c:8717:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8721:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8725:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8726:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8730:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8730:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8731:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm.c:8732:23: throw: if 'snd_config_get_string' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm.c:8732:23: danger: 'maps' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
# 8730|   	snd_config_for_each(i, next, conf) {
# 8731|   		snd_config_t *n = snd_config_iterator_entry(i);
# 8732|-> 		err = snd_config_get_string(n, &str);
# 8733|   		if (err < 0)
# 8734|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:443:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)*adpcm_21->plug.gen.slave.channels * 8)'
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:417:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:420:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:424:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:433:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:437:45: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:441:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:442:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:442:25: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:443:12: danger: 'malloc((long unsigned int)*adpcm_21->plug.gen.slave.channels * 8)' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  441|   	assert(!adpcm->states);
#  442|   	adpcm->states = malloc(adpcm->plug.gen.slave->channels * sizeof(*adpcm->states));
#  443|-> 	if (adpcm->states == NULL)
#  444|   		return -ENOMEM;
#  445|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:564:9: warning[-Wanalyzer-malloc-leak]: leak of 'adpcm'
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:555:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:556:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:559:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:560:12: branch_false: following 'false' branch (when 'adpcm' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:563:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:564:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_adpcm.c:564:9: danger: 'adpcm' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  562|   	}
#  563|   	adpcm->sformat = sformat;
#  564|-> 	snd_pcm_plugin_init(&adpcm->plug);
#  565|   	adpcm->plug.read = snd_pcm_adpcm_read_areas;
#  566|   	adpcm->plug.write = snd_pcm_adpcm_write_areas;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
alsa-lib-1.2.15.1/src/pcm/pcm_alaw.c:437:9: warning[-Wanalyzer-malloc-leak]: leak of 'alaw'
alsa-lib-1.2.15.1/src/pcm/pcm_alaw.c:429:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_alaw.c:430:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_alaw.c:433:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_alaw.c:434:12: branch_false: following 'false' branch (when 'alaw' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_alaw.c:437:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_alaw.c:437:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_alaw.c:437:9: danger: 'alaw' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  435|   		return -ENOMEM;
#  436|   	}
#  437|-> 	snd_pcm_plugin_init(&alaw->plug);
#  438|   	alaw->sformat = sformat;
#  439|   	alaw->plug.read = snd_pcm_alaw_read_areas;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
alsa-lib-1.2.15.1/src/pcm/pcm_copy.c:194:9: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
alsa-lib-1.2.15.1/src/pcm/pcm_copy.c:189:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_copy.c:190:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_copy.c:190:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_copy.c:191:12: branch_false: following 'false' branch (when 'copy' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_copy.c:194:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_copy.c:194:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_copy.c:194:9: danger: 'copy' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  192|   		return -ENOMEM;
#  193|   	}
#  194|-> 	snd_pcm_plugin_init(&copy->plug);
#  195|   	copy->plug.read = snd_pcm_copy_read_areas;
#  196|   	copy->plug.write = snd_pcm_copy_write_areas;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1731:13: warning[-Wanalyzer-malloc-leak]: leak of 'dmix'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2157:5: enter_function: entry to '_snd_pcm_direct_new'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2165:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2166:12: branch_false: following 'false' branch (when 'dmix' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: call_function: calling 'snd1_pcm_direct_parse_bindings' from '_snd_pcm_direct_new'
# 1729|   	if (cfg == NULL)
# 1730|   		return 0;
# 1731|-> 	if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
# 1732|   		snd_error(PCM, "invalid type for bindings");
# 1733|   		return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1732:17: warning[-Wanalyzer-malloc-leak]: leak of 'dmix'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2157:5: enter_function: entry to '_snd_pcm_direct_new'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2165:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2166:12: branch_false: following 'false' branch (when 'dmix' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: call_function: calling 'snd1_pcm_direct_parse_bindings' from '_snd_pcm_direct_new'
# 1730|   		return 0;
# 1731|   	if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
# 1732|-> 		snd_error(PCM, "invalid type for bindings");
# 1733|   		return -EINVAL;
# 1734|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1735:9: warning[-Wanalyzer-malloc-leak]: leak of 'dmix'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2157:5: enter_function: entry to '_snd_pcm_direct_new'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2165:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2166:12: branch_false: following 'false' branch (when 'dmix' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: call_function: calling 'snd1_pcm_direct_parse_bindings' from '_snd_pcm_direct_new'
# 1733|   		return -EINVAL;
# 1734|   	}
# 1735|-> 	snd_config_for_each(i, next, cfg) {
# 1736|   		snd_config_t *n = snd_config_iterator_entry(i);
# 1737|   		const char *id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1736:35: warning[-Wanalyzer-malloc-leak]: leak of 'dmix'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2157:5: enter_function: entry to '_snd_pcm_direct_new'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2165:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2166:12: branch_false: following 'false' branch (when 'dmix' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: call_function: calling 'snd1_pcm_direct_parse_bindings' from '_snd_pcm_direct_new'
# 1734|   	}
# 1735|   	snd_config_for_each(i, next, cfg) {
# 1736|-> 		snd_config_t *n = snd_config_iterator_entry(i);
# 1737|   		const char *id;
# 1738|   		long cchannel;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1739:21: warning[-Wanalyzer-malloc-leak]: leak of 'dmix'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2157:5: enter_function: entry to '_snd_pcm_direct_new'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2165:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2166:12: branch_false: following 'false' branch (when 'dmix' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2169:15: call_function: calling 'snd1_pcm_direct_parse_bindings' from '_snd_pcm_direct_new'
# 1737|   		const char *id;
# 1738|   		long cchannel;
# 1739|-> 		if (snd_config_get_id(n, &id) < 0)
# 1740|   			continue;
# 1741|   		err = safe_strtol(id, &cchannel);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: throw: if 'snd_config_iterator_first' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: danger: 'bindings' leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 1758|   	for (chn = 0; chn < count; chn++)
# 1759|   		bindings[chn] = UINT_MAX;		/* don't route */
# 1760|-> 	snd_config_for_each(i, next, cfg) {
# 1761|   		snd_config_t *n = snd_config_iterator_entry(i);
# 1762|   		const char *id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: throw: if 'snd_config_iterator_entry' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: danger: 'bindings' leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
# 1759|   		bindings[chn] = UINT_MAX;		/* don't route */
# 1760|   	snd_config_for_each(i, next, cfg) {
# 1761|-> 		snd_config_t *n = snd_config_iterator_entry(i);
# 1762|   		const char *id;
# 1763|   		long cchannel, schannel;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1764:21: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1764:21: throw: if 'snd_config_get_id' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1764:21: danger: 'bindings' leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
# 1762|   		const char *id;
# 1763|   		long cchannel, schannel;
# 1764|-> 		if (snd_config_get_id(n, &id) < 0)
# 1765|   			continue;
# 1766|   		err = safe_strtol(id, &cchannel);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1771:21: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1767:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1771:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1771:21: throw: if 'snd_config_get_integer' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1771:21: danger: 'bindings' leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
# 1769|   			return -EINVAL;
# 1770|   		}
# 1771|-> 		if (snd_config_get_integer(n, &schannel) < 0) {
# 1772|   			snd_error(PCM, "unable to get slave channel (should be integer type) in binding: %s", id);
# 1773|   			free(bindings);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1772:25: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1767:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1771:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1772:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1772:25: danger: 'bindings' leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
# 1770|   		}
# 1771|   		if (snd_config_get_integer(n, &schannel) < 0) {
# 1772|-> 			snd_error(PCM, "unable to get slave channel (should be integer type) in binding: %s", id);
# 1773|   			free(bindings);
# 1774|   			return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1777:25: warning[-Wanalyzer-malloc-leak]: leak of 'bindings'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1742:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1749:12: branch_false: following 'false' branch (when 'count != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1751:12: branch_false: following 'false' branch (when 'count <= 1024')...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1755:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: following 'false' branch (when 'bindings' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1760:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1761:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1767:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1771:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1771:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1776:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1777:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1777:25: danger: 'bindings' leaks here; was allocated at [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
# 1775|   		}
# 1776|   		if (schannel < 0 || schannel >= params->channels) {
# 1777|-> 			snd_error(PCM, "invalid slave channel number %ld in binding to %ld",
# 1778|   				       schannel, cchannel);
# 1779|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2059:42: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1964:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1966:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1969:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1971:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1971:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1982:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1982:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1996:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:1996:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2018:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2018:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2039:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2039:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2042:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2043:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2047:31: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2047:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2052:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2052:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2053:45: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2056:56: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2057:36: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2059:42: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2059:42: throw: if 'getgrnam_r' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_direct.c:2059:42: danger: 'buffer' leaks here; was allocated at [(21)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/20)
# 2057|   				if (buffer == NULL)
# 2058|   					return -ENOMEM;
# 2059|-> 				int st = getgrnam_r(group, &grp, buffer, len, &pgrp);
# 2060|   				if (st != 0 || !pgrp) {
# 2061|   					snd_error(PCM, "The field ipc_gid must be a valid group (create group %s)", group);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:93:9: warning[-Wanalyzer-malloc-leak]: leak of 'new_list'
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:829:5: enter_function: entry to 'snd_pcm_extplug_set_param_list'
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:832:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:836:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:836:16: call_function: calling 'snd1_ext_parm_set_list' from 'snd_pcm_extplug_set_param_list'
#   91|   		return -ENOMEM;
#   92|   	memcpy(new_list, list, sizeof(*new_list) * num_list);
#   93|-> 	qsort(new_list, num_list, sizeof(*new_list), val_compar);
#   94|   
#   95|   	free(parm->list);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:714:9: warning[-Wanalyzer-malloc-leak]: leak of 'ext'
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:685:9: branch_true: following 'true' branch (when 'root' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:686:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:686:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:687:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:688:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:688:9: branch_true: following 'true' branch (when 'slave_conf' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:691:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:691:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:699:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:700:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:702:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:704:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:707:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:707:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:708:12: branch_false: following 'false' branch (when 'ext' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:711:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:714:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_extplug.c:714:9: danger: 'ext' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  712|   	extplug->stream = stream;
#  713|   
#  714|-> 	snd_pcm_plugin_init(&ext->plug);
#  715|   	ext->plug.read = snd_pcm_extplug_read_areas;
#  716|   	ext->plug.write = snd_pcm_extplug_write_areas;

Error: CPPCHECK_WARNING (CWE-401): [#def229]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:132: error[memleakOnRealloc]: Common realloc mistake: 'string' nulled but not freed upon failure
#  130|   	index = index_ch - string;
#  131|   	len += value_len;
#  132|-> 	string = realloc(string, len + 1);
#  133|   	if (!string)
#  134|   		return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:161:24: warning[-Wanalyzer-malloc-leak]: leak of 'new_fname'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:777:12: enter_function: entry to 'snd_pcm_file_hw_params'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:784:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:786:48: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:787:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:789:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:794:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:796:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:800:63: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:801:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:806:27: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:810:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:814:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:821:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:822:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:822:23: call_function: calling 'snd_pcm_file_open_output_file' from 'snd_pcm_file_hw_params'
#  159|   	new_fname = malloc(new_len + 1);
#  160|   	if (!new_fname)
#  161|-> 		return -ENOMEM;
#  162|   
#  163|   	old_index_ch = fname;	/* first character of the old name */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:161:24: warning[-Wanalyzer-malloc-leak]: leak of 'new_index_ch'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:777:12: enter_function: entry to 'snd_pcm_file_hw_params'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:784:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:786:48: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:787:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:789:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:794:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:796:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:800:63: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:801:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:806:27: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:810:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:814:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:821:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:822:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:822:23: call_function: calling 'snd_pcm_file_open_output_file' from 'snd_pcm_file_hw_params'
#  159|   	new_fname = malloc(new_len + 1);
#  160|   	if (!new_fname)
#  161|-> 		return -ENOMEM;
#  162|   
#  163|   	old_index_ch = fname;	/* first character of the old name */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:200:39: warning[-Wanalyzer-malloc-leak]: leak of 'new_fname'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:777:12: enter_function: entry to 'snd_pcm_file_hw_params'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:784:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:786:48: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:787:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:789:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:794:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:796:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:800:63: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:801:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:806:27: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:810:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:814:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:821:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:822:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:822:23: call_function: calling 'snd_pcm_file_open_output_file' from 'snd_pcm_file_hw_params'
#  198|   
#  199|   			case FORMAT_KEY:
#  200|-> 				err = snd_pcm_file_append_value(&new_fname,
#  201|   					&new_index_ch, &new_len,
#  202|   					snd_pcm_format_name(pcm->format));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:200:39: warning[-Wanalyzer-malloc-leak]: leak of 'new_index_ch'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:777:12: enter_function: entry to 'snd_pcm_file_hw_params'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:784:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:786:48: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:787:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:789:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:794:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:796:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:800:63: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:801:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:806:27: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:810:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:814:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:821:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:822:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:822:23: call_function: calling 'snd_pcm_file_open_output_file' from 'snd_pcm_file_hw_params'
#  198|   
#  199|   			case FORMAT_KEY:
#  200|-> 				err = snd_pcm_file_append_value(&new_fname,
#  201|   					&new_index_ch, &new_len,
#  202|   					snd_pcm_format_name(pcm->format));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:796:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)snd_pcm_frames_to_bytes(slave, (long int)(*slave.buffer_size * 2)))'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:784:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:786:48: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:787:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:789:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:794:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:796:12: danger: 'malloc((long unsigned int)snd_pcm_frames_to_bytes(slave, (long int)(*slave.buffer_size * 2)))' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  794|   	assert(!file->wbuf);
#  795|   	file->wbuf = malloc(file->wbuf_size_bytes);
#  796|-> 	if (file->wbuf == NULL) {
#  797|   		snd_pcm_file_hw_free(pcm);
#  798|   		return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:801:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)*slave.channels * 16)'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:784:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:786:48: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:787:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:789:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:794:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:796:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:800:63: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:800:28: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:801:12: danger: 'malloc((long unsigned int)*slave.channels * 16)' leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
#  799|   	}
#  800|   	file->wbuf_areas = malloc(sizeof(*file->wbuf_areas) * slave->channels);
#  801|-> 	if (file->wbuf_areas == NULL) {
#  802|   		snd_pcm_file_hw_free(pcm);
#  803|   		return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:810:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)snd_pcm_frames_to_bytes(slave, (long int)*slave.buffer_size))'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:784:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:786:48: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:787:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:789:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:794:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:795:22: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:796:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:800:63: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:800:28: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:801:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:805:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:806:27: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:809:22: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:810:12: danger: 'malloc((long unsigned int)snd_pcm_frames_to_bytes(slave, (long int)*slave.buffer_size))' leaks here; was allocated at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
#  808|   	file->rbuf_used_bytes = 0;
#  809|   	file->rbuf = malloc(file->rbuf_size_bytes);
#  810|-> 	if (file->rbuf == NULL) {
#  811|   		snd_pcm_file_hw_free(pcm);
#  812|   		return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:964:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: throw: if 'open' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  963|   		file->ifname = strdup(ifname);
#  964|   		if (file->ifname)
#  965|-> 			ifd = open(ifname, O_RDONLY);	/* TODO: mind blocking mode */
#  966|   		else
#  967|   			ifd = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:950:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:964:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: throw: if 'open' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: danger: 'file' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  963|   		file->ifname = strdup(ifname);
#  964|   		if (file->ifname)
#  965|-> 			ifd = open(ifname, O_RDONLY);	/* TODO: mind blocking mode */
#  966|   		else
#  967|   			ifd = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:972:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:964:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:968:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:971:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:972:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:972:25: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  970|   				close(ifd);
#  971|   			err = -errno;
#  972|-> 			snd_errornum(PCM, "open %s for reading failed", ifname);
#  973|   			free(file->ifname);
#  974|   			free(file->fname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:972:25: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:950:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:964:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:968:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:971:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:972:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:972:25: danger: 'file' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  970|   				close(ifd);
#  971|   			err = -errno;
#  972|-> 			snd_errornum(PCM, "open %s for reading failed", ifname);
#  973|   			free(file->ifname);
#  974|   			free(file->fname);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'ifd'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:964:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: acquire_resource: opened here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:968:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: danger: 'ifd' leaks here; was opened at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
#  983|   	file->gen.close_slave = close_slave;
#  984|   
#  985|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_FILE, name, slave->stream, slave->mode);
#  986|   	if (err < 0) {
#  987|   		if (file->ifname && file->ifd >= 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_true: following 'true' branch (when 'fname' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:958:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:958:31: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:979:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
#  983|   	file->gen.close_slave = close_slave;
#  984|   
#  985|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_FILE, name, slave->stream, slave->mode);
#  986|   	if (err < 0) {
#  987|   		if (file->ifname && file->ifd >= 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:950:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:979:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:985:15: danger: 'file' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  983|   	file->gen.close_slave = close_slave;
#  984|   
#  985|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_FILE, name, slave->stream, slave->mode);
#  986|   	if (err < 0) {
#  987|   		if (file->ifname && file->ifd >= 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def244]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'ifd'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:964:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: acquire_resource: opened here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:968:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:986:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:987:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:987:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: danger: 'ifd' leaks here; was opened at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
#  986|   	if (err < 0) {
#  987|   		if (file->ifname && file->ifd >= 0)
#  988|-> 			close(file->ifd);
#  989|   		free(file->fname);
#  990|   		free(file->ifname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:964:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:968:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:986:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:987:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:987:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
#  986|   	if (err < 0) {
#  987|   		if (file->ifname && file->ifd >= 0)
#  988|-> 			close(file->ifd);
#  989|   		free(file->fname);
#  990|   		free(file->ifname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:940:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:941:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:950:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:951:12: branch_false: following 'false' branch (when 'file' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:957:12: branch_false: following 'false' branch (when 'fname' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:959:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:962:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:963:32: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:964:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:965:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:968:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:986:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:987:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:987:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_file.c:988:25: danger: 'file' leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  986|   	if (err < 0) {
#  987|   		if (file->ifname && file->ifd >= 0)
#  988|-> 			close(file->ifd);
#  989|   		free(file->fname);
#  990|   		free(file->ifname);

Error: CPPCHECK_WARNING (CWE-401): [#def247]
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:69: error[memleak]: Memory leak: dl
#   67|   	dl->dlobj = dlobj;
#   68|   	list_add_tail(&dl->list, &h->dllist);
#   69|-> 	return 0;
#   70|   }
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:232:15: warning[-Wanalyzer-malloc-leak]: leak of 'h'
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:222:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:223:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:223:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:224:12: branch_false: following 'false' branch (when 'h' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:226:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:228:21: branch_true: following 'true' branch (when 'k != 3')...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:229:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:228:21: branch_true: following 'true' branch (when 'k != 3')...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:229:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:228:21: branch_true: following 'true' branch (when 'k != 3')...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:229:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:228:21: branch_false: following 'false' branch (when 'k == 3')...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:231:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:232:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hooks.c:232:15: danger: 'h' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  230|   	}
#  231|   	INIT_LIST_HEAD(&h->dllist);
#  232|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_HOOKS, name, slave->stream, slave->mode);
#  233|   	if (err < 0) {
#  234|   		free(h);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1031:31: warning[-Wanalyzer-malloc-leak]: leak of 'sync_ptr'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1074:12: enter_function: entry to 'map_status_and_control_data'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1081:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1082:12: branch_false: following 'false' branch (when 'sync_ptr' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1084:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1087:25: call_function: calling 'map_status_data' from 'map_status_and_control_data'
# 1029|   	mmap_status = MAP_FAILED;
# 1030|   	if (!force_fallback) {
# 1031|-> 		mmap_status = mmap(NULL, page_align(sizeof(*mmap_status)),
# 1032|   				   PROT_READ, MAP_FILE|MAP_SHARED,
# 1033|   				   hw->fd, SNDRV_PCM_MMAP_OFFSET_STATUS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1057:32: warning[-Wanalyzer-malloc-leak]: leak of 'sync_ptr'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1074:12: enter_function: entry to 'map_status_and_control_data'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1081:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1082:12: branch_false: following 'false' branch (when 'sync_ptr' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1084:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1089:25: call_function: calling 'map_control_data' from 'map_status_and_control_data'
# 1055|   	mmap_control = MAP_FAILED;
# 1056|   	if (!force_fallback) {
# 1057|-> 		mmap_control = mmap(NULL, page_align(sizeof(*mmap_control)),
# 1058|   				    PROT_READ|PROT_WRITE, MAP_FILE|MAP_SHARED,
# 1059|   				    hw->fd, SNDRV_PCM_MMAP_OFFSET_CONTROL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1071:16: warning[-Wanalyzer-malloc-leak]: leak of 'sync_ptr'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1081:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1082:12: branch_false: following 'false' branch (when 'sync_ptr' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1084:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1102:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1107:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1112:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1112:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1071:16: danger: 'sync_ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1069|   	hw->mmap_control = mmap_control;
# 1070|   
# 1071|-> 	return fallbacked;
# 1072|   }
# 1073|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1107:9: warning[-Wanalyzer-malloc-leak]: leak of 'sync_ptr'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1081:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1082:12: branch_false: following 'false' branch (when 'sync_ptr' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1084:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1102:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1107:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1107:9: throw: if 'snd1_pcm_set_hw_ptr' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1107:9: danger: 'sync_ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1105|   		hw->mmap_control->avail_min = 1;
# 1106|   	}
# 1107|-> 	snd_pcm_set_hw_ptr(pcm, &hw->mmap_status->hw_ptr, hw->fd,
# 1108|   			   SNDRV_PCM_MMAP_OFFSET_STATUS +
# 1109|   				offsetof(struct snd_pcm_mmap_status, hw_ptr));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1110:9: warning[-Wanalyzer-malloc-leak]: leak of 'sync_ptr'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1081:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1082:12: branch_false: following 'false' branch (when 'sync_ptr' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1084:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1102:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1107:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1110:9: throw: if 'snd1_pcm_set_appl_ptr' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1110:9: danger: 'sync_ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1108|   			   SNDRV_PCM_MMAP_OFFSET_STATUS +
# 1109|   				offsetof(struct snd_pcm_mmap_status, hw_ptr));
# 1110|-> 	snd_pcm_set_appl_ptr(pcm, &hw->mmap_control->appl_ptr, hw->fd,
# 1111|   			     SNDRV_PCM_MMAP_OFFSET_CONTROL);
# 1112|   	if (hw->mmap_control_fallbacked) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1250:9: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: call_function: calling 'fill_chmap_ctl_id' from 'snd_pcm_hw_get_chmap'
# 1248|   				int stream)
# 1249|   {
# 1250|-> 	snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_PCM);
# 1251|   	if (stream == SND_PCM_STREAM_PLAYBACK)
# 1252|   		snd_ctl_elem_id_set_name(id, "Playback Channel Map");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1252:17: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: call_function: calling 'fill_chmap_ctl_id' from 'snd_pcm_hw_get_chmap'
# 1250|   	snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_PCM);
# 1251|   	if (stream == SND_PCM_STREAM_PLAYBACK)
# 1252|-> 		snd_ctl_elem_id_set_name(id, "Playback Channel Map");
# 1253|   	else
# 1254|   		snd_ctl_elem_id_set_name(id, "Capture Channel Map");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1254:17: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: call_function: calling 'fill_chmap_ctl_id' from 'snd_pcm_hw_get_chmap'
# 1252|   		snd_ctl_elem_id_set_name(id, "Playback Channel Map");
# 1253|   	else
# 1254|-> 		snd_ctl_elem_id_set_name(id, "Capture Channel Map");
# 1255|   	snd_ctl_elem_id_set_device(id, dev);
# 1256|   	snd_ctl_elem_id_set_index(id, subdev);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1255:9: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: call_function: calling 'fill_chmap_ctl_id' from 'snd_pcm_hw_get_chmap'
# 1253|   	else
# 1254|   		snd_ctl_elem_id_set_name(id, "Capture Channel Map");
# 1255|-> 	snd_ctl_elem_id_set_device(id, dev);
# 1256|   	snd_ctl_elem_id_set_index(id, subdev);
# 1257|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1256:9: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: call_function: calling 'fill_chmap_ctl_id' from 'snd_pcm_hw_get_chmap'
# 1254|   		snd_ctl_elem_id_set_name(id, "Capture Channel Map");
# 1255|   	snd_ctl_elem_id_set_device(id, dev);
# 1256|-> 	snd_ctl_elem_id_set_index(id, subdev);
# 1257|   }
# 1258|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1349:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1299:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1304:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1307:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1319:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1320:12: branch_false: following 'false' branch (when 'type == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1331:24: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1334:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1338:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1334:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1338:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1344:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1344:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1346:21: branch_true: following 'true' branch (when 'i < nums')...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1347:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1347:26: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1348:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1352:32: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1346:21: branch_true: following 'true' branch (when 'i < nums')...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1347:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1348:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1349:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1349:25: throw: if 'snd_pcm_free_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1349:25: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/14)
# 1347|   		map[i] = malloc(start[1] + 8);
# 1348|   		if (!map[i]) {
# 1349|-> 			snd_pcm_free_chmaps(map);
# 1350|   			return NULL;
# 1351|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1349:25: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1288:1: enter_function: entry to 'snd_pcm_query_chmaps_from_hw'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1299:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1304:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1307:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1319:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1320:12: branch_true: following 'true' branch (when 'type != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1321:22: call_function: inlined call to 'is_chmap_type' from 'snd_pcm_query_chmaps_from_hw'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1321:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1343:22: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1343:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1344:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1344:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1346:21: branch_true: following 'true' branch (when 'i < nums')...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1347:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1348:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1349:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1349:25: throw: if 'snd_pcm_free_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1349:25: danger: 'map' leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
# 1347|   		map[i] = malloc(start[1] + 8);
# 1348|   		if (!map[i]) {
# 1349|-> 			snd_pcm_free_chmaps(map);
# 1350|   			return NULL;
# 1351|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1435:15: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1435:15: throw: if 'snd_ctl_hw_open' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1435:15: danger: 'map' leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
# 1433|   		return NULL;
# 1434|   	map->channels = pcm->channels;
# 1435|-> 	ret = snd_ctl_hw_open(&ctl, NULL, hw->card, 0);
# 1436|   	if (ret < 0) {
# 1437|   		free(map);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1443:9: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1443:9: throw: if 'snd_ctl_elem_value_set_id' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1443:9: danger: 'map' leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
# 1441|   	}
# 1442|   	fill_chmap_ctl_id(pcm, &id);
# 1443|-> 	snd_ctl_elem_value_set_id(&val, &id);
# 1444|   	ret = snd_ctl_elem_read(ctl, &val);
# 1445|   	snd_ctl_close(ctl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1444:15: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1444:15: throw: if 'snd_ctl_elem_read' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1444:15: danger: 'map' leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
# 1442|   	fill_chmap_ctl_id(pcm, &id);
# 1443|   	snd_ctl_elem_value_set_id(&val, &id);
# 1444|-> 	ret = snd_ctl_elem_read(ctl, &val);
# 1445|   	snd_ctl_close(ctl);
# 1446|   	if (ret < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1445:9: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1445:9: throw: if 'snd_ctl_close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1445:9: danger: 'map' leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
# 1443|   	snd_ctl_elem_value_set_id(&val, &id);
# 1444|   	ret = snd_ctl_elem_read(ctl, &val);
# 1445|-> 	snd_ctl_close(ctl);
# 1446|   	if (ret < 0) {
# 1447|   		free(map);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1453:31: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1401:25: enter_function: entry to 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1411:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1414:14: call_function: inlined call to 'chmap_caps' from 'snd_pcm_hw_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1417:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1431:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1432:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1434:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1436:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1442:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1446:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1446:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1452:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1453:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1453:31: throw: if 'snd_ctl_elem_value_get_integer' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1453:31: danger: 'map' leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
# 1451|   	}
# 1452|   	for (i = 0; i < pcm->channels; i++)
# 1453|-> 		map->pos[i] = snd_ctl_elem_value_get_integer(&val, i);
# 1454|   	chmap_caps_set_ok(hw, CHMAP_CTL_GET);
# 1455|   	return map;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1713:15: warning[-Wanalyzer-malloc-leak]: leak of 'hw'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1629:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1631:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1632:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1640:22: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1640:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1640:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1653:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1659:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1659:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1697:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1698:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1703:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1713:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1713:15: danger: 'hw' leaks here; was allocated at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
# 1711|   	hw->channels = 0;
# 1712|   
# 1713|-> 	ret = snd_pcm_new(&pcm, SND_PCM_TYPE_HW, name, info.stream, mode);
# 1714|   	if (ret < 0) {
# 1715|   		free(hw);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def267]
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1823:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&filename,  fmode)'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1757:5: enter_function: entry to 'snd_pcm_hw_open'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1771:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1773:20: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1773:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1776:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1790:12: branch_false: following 'false' branch (when 'attempt != 4')...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1794:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1795:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1798:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1804:14: call_function: inlined call to 'snd_open_device' from 'snd_pcm_hw_open'
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1805:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1810:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1823:9: throw: if 'snd_ctl_close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_hw.c:1823:9: danger: 'open(&filename,  fmode)' leaks here; was opened at [(11)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/10)
# 1821|   		}
# 1822|   	}
# 1823|-> 	snd_ctl_close(ctl);
# 1824|   	return snd_pcm_hw_open_fd(pcmp, name, fd, sync_ptr_ioctl);
# 1825|          _err:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
alsa-lib-1.2.15.1/src/pcm/pcm_iec958.c:590:9: warning[-Wanalyzer-malloc-leak]: leak of 'iec'
alsa-lib-1.2.15.1/src/pcm/pcm_iec958.c:581:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_iec958.c:582:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_iec958.c:586:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_iec958.c:587:12: branch_false: following 'false' branch (when 'iec' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_iec958.c:590:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_iec958.c:590:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_iec958.c:590:9: danger: 'iec' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  588|   		return -ENOMEM;
#  589|   	}
#  590|-> 	snd_pcm_plugin_init(&iec->plug);
#  591|   	iec->sformat = sformat;
#  592|   	iec->plug.read = snd_pcm_iec958_read_areas;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1103:15: warning[-Wanalyzer-malloc-leak]: leak of 'io'
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1081:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1082:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1087:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1095:14: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1095:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1096:12: branch_false: following 'false' branch (when 'io' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1099:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1103:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_ioplug.c:1103:15: danger: 'io' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1101|   	ioplug->stream = stream;
# 1102|   
# 1103|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_IOPLUG, name, stream, mode);
# 1104|   	if (err < 0) {
# 1105|   		free(io);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def270]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:177:9: warning[-Wanalyzer-double-free]: double-'free' of '*io.controls'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1586:5: enter_function: entry to 'snd_pcm_ladspa_open'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1597:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1602:12: branch_false: following 'false' branch (when 'ladspa' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1604:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1617:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1624:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1624:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1634:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1635:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1636:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1636:17: call_function: calling 'snd_pcm_ladspa_free' from 'snd_pcm_ladspa_open'
#  175|   static void snd_pcm_ladspa_free_io(snd_pcm_ladspa_plugin_io_t *io)
#  176|   {
#  177|-> 	free(io->controls);
#  178|   	free(io->controls_initialized);
#  179|   }

Error: GCC_ANALYZER_WARNING (CWE-415): [#def271]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:178:9: warning[-Wanalyzer-double-free]: double-'free' of '*io.controls_initialized'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1586:5: enter_function: entry to 'snd_pcm_ladspa_open'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1597:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1602:12: branch_false: following 'false' branch (when 'ladspa' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1604:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1617:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1624:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1624:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1634:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1635:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1636:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1636:17: call_function: calling 'snd_pcm_ladspa_free' from 'snd_pcm_ladspa_open'
#  176|   {
#  177|   	free(io->controls);
#  178|-> 	free(io->controls_initialized);
#  179|   }
#  180|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def272]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:187:21: warning[-Wanalyzer-use-after-free]: use after 'free' of '*plugins.next'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1586:5: enter_function: entry to 'snd_pcm_ladspa_open'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1597:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1602:12: branch_false: following 'false' branch (when 'ladspa' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1604:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1617:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1624:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1624:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1634:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1635:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1636:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1636:17: call_function: calling 'snd_pcm_ladspa_free' from 'snd_pcm_ladspa_open'
#  185|   		snd_pcm_ladspa_free_io(&plugin->input);
#  186|   		snd_pcm_ladspa_free_io(&plugin->output);
#  187|-> 		if (plugin->dl_handle)
#  188|   			dlclose(plugin->dl_handle);
#  189|   		free(plugin->filename);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def273]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:189:17: warning[-Wanalyzer-double-free]: double-'free' of '*(snd_pcm_ladspa_plugin_t *)MEM[(const struct list_head *)plugins_8(D)].next.filename'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1586:5: enter_function: entry to 'snd_pcm_ladspa_open'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1597:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1602:12: branch_false: following 'false' branch (when 'ladspa' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1604:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1617:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1624:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1624:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1634:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1635:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1636:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1636:17: call_function: calling 'snd_pcm_ladspa_free' from 'snd_pcm_ladspa_open'
#  187|   		if (plugin->dl_handle)
#  188|   			dlclose(plugin->dl_handle);
#  189|-> 		free(plugin->filename);
#  190|   		list_del(&plugin->list);
#  191|   		free(plugin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1100:44: warning[-Wanalyzer-malloc-leak]: leak of 'filename'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1144:12: enter_function: entry to 'snd_pcm_ladspa_check_dir'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1155:12: branch_false: following 'false' branch (when 'len > 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1157:27: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1160:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1160:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1165:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1170:48: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1170:28: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1171:20: branch_false: following 'false' branch (when 'filename' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1175:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1176:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1177:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1179:23: call_function: calling 'snd_pcm_ladspa_check_file' from 'snd_pcm_ladspa_check_dir'
# 1098|   			long idx;
# 1099|   			const LADSPA_Descriptor *d;
# 1100|-> 			for (idx = 0; (d = fcn(idx)) != NULL; idx++) {
# 1101|   /*
# 1102|    * avoid locale problems - see ALSA bug#1553

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1100:44: warning[-Wanalyzer-malloc-leak]: leak of 'lplug'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1426:12: enter_function: entry to 'snd_pcm_ladspa_add_plugin'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1439:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1440:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1444:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1445:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1446:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1444:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1488:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1492:44: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1492:44: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1493:12: branch_false: following 'false' branch (when 'lplug' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1495:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1499:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1507:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1507:23: call_function: calling 'snd_pcm_ladspa_look_for_plugin' from 'snd_pcm_ladspa_add_plugin'
# 1098|   			long idx;
# 1099|   			const LADSPA_Descriptor *d;
# 1100|-> 			for (idx = 0; (d = fcn(idx)) != NULL; idx++) {
# 1101|   /*
# 1102|    * avoid locale problems - see ALSA bug#1553

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1159:15: warning[-Wanalyzer-malloc-leak]: leak of 'lplug'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1426:12: enter_function: entry to 'snd_pcm_ladspa_add_plugin'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1439:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1440:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1444:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1445:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1446:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1444:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1488:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1492:44: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1492:44: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1493:12: branch_false: following 'false' branch (when 'lplug' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1495:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1499:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1507:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1507:23: call_function: calling 'snd_pcm_ladspa_look_for_plugin' from 'snd_pcm_ladspa_add_plugin'
# 1157|   	need_slash = path[len - 1] != '/';
# 1158|   
# 1159|-> 	dir = opendir(path);
# 1160|   	if (!dir)
# 1161|   		return -ENOENT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1164:26: warning[-Wanalyzer-malloc-leak]: leak of 'lplug'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1426:12: enter_function: entry to 'snd_pcm_ladspa_add_plugin'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1439:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1440:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1444:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1445:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1446:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1444:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1488:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1492:44: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1492:44: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1493:12: branch_false: following 'false' branch (when 'lplug' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1495:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1499:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1507:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1507:23: call_function: calling 'snd_pcm_ladspa_look_for_plugin' from 'snd_pcm_ladspa_add_plugin'
# 1162|   
# 1163|   	while (1) {
# 1164|-> 		dirent = readdir64(dir);
# 1165|   		if (!dirent) {
# 1166|   			closedir(dir);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1164:26: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1155:12: branch_false: following 'false' branch (when 'len > 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1157:27: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1159:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1160:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1160:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1164:26: throw: if 'readdir64' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1164:26: danger: 'opendir(path)' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 1162|   
# 1163|   	while (1) {
# 1164|-> 		dirent = readdir64(dir);
# 1165|   		if (!dirent) {
# 1166|   			closedir(dir);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1208:23: warning[-Wanalyzer-malloc-leak]: leak of 'lplug'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1426:12: enter_function: entry to 'snd_pcm_ladspa_add_plugin'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1439:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1440:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1444:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1445:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1446:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1444:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1488:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1492:44: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1492:44: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1493:12: branch_false: following 'false' branch (when 'lplug' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1495:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1499:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1507:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1507:23: call_function: calling 'snd_pcm_ladspa_look_for_plugin' from 'snd_pcm_ladspa_add_plugin'
# 1206|   		memcpy(name, c, l);
# 1207|   		name[l] = 0;
# 1208|-> 		err = snd_user_file(name, &fullpath);
# 1209|   		if (err < 0)
# 1210|   			return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1604:9: warning[-Wanalyzer-malloc-leak]: leak of 'ladspa'
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1597:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1601:18: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1602:12: branch_false: following 'false' branch (when 'ladspa' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1604:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1604:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_ladspa.c:1604:9: danger: 'ladspa' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 1602|   	if (!ladspa)
# 1603|   		return -ENOMEM;
# 1604|-> 	snd_pcm_plugin_init(&ladspa->plug);
# 1605|   	ladspa->plug.init = snd_pcm_ladspa_init;
# 1606|   	ladspa->plug.read = snd_pcm_ladspa_read_areas;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
alsa-lib-1.2.15.1/src/pcm/pcm_lfloat.c:395:9: warning[-Wanalyzer-malloc-leak]: leak of 'lfloat'
alsa-lib-1.2.15.1/src/pcm/pcm_lfloat.c:387:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_lfloat.c:388:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_lfloat.c:391:18: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_lfloat.c:392:12: branch_false: following 'false' branch (when 'lfloat' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_lfloat.c:395:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_lfloat.c:395:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_lfloat.c:395:9: danger: 'lfloat' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  393|   		return -ENOMEM;
#  394|   	}
#  395|-> 	snd_pcm_plugin_init(&lfloat->plug);
#  396|   	lfloat->sformat = sformat;
#  397|   	lfloat->plug.read = snd_pcm_lfloat_read_areas;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:439:9: warning[-Wanalyzer-malloc-leak]: leak of 'linear'
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:432:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:433:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:433:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:435:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:435:18: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:436:12: branch_false: following 'false' branch (when 'linear' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:439:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:439:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_linear.c:439:9: danger: 'linear' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  437|   		return -ENOMEM;
#  438|   	}
#  439|-> 	snd_pcm_plugin_init(&linear->plug);
#  440|   	linear->sformat = sformat;
#  441|   	linear->plug.read = snd_pcm_linear_read_areas;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:466:63: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)snd_pcm_frames_to_bytes(slave, (long int)*meter.buf_size))'
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:453:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:456:27: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:460:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:462:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:462:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:463:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:463:22: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:464:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:466:63: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:466:63: danger: 'malloc((long unsigned int)snd_pcm_frames_to_bytes(slave, (long int)*meter.buf_size))' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  464|   	if (!meter->buf)
#  465|   		return -ENOMEM;
#  466|-> 	meter->buf_areas = malloc(sizeof(*meter->buf_areas) * slave->channels);
#  467|   	if (!meter->buf_areas) {
#  468|   		free(meter->buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:467:12: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)*slave.channels * 16)'
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:453:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:456:27: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:460:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:462:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:462:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:463:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:464:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:466:63: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:466:28: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:467:12: danger: 'malloc((long unsigned int)*slave.channels * 16)' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  465|   		return -ENOMEM;
#  466|   	meter->buf_areas = malloc(sizeof(*meter->buf_areas) * slave->channels);
#  467|-> 	if (!meter->buf_areas) {
#  468|   		free(meter->buf);
#  469|   		return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:587:15: warning[-Wanalyzer-malloc-leak]: leak of 'meter'
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:577:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:578:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:578:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:579:12: branch_false: following 'false' branch (when 'meter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:581:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:587:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:587:15: danger: 'meter' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  585|   	INIT_LIST_HEAD(&meter->scopes);
#  586|   
#  587|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_METER, name, slave->stream, slave->mode);
#  588|   	if (err < 0) {
#  589|   		free(meter);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1051:20: warning[-Wanalyzer-malloc-leak]: leak of 'calloc((long unsigned int)*spcm.channels, 8)'
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1049:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1050:44: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1050:37: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1051:20: danger: 'calloc((long unsigned int)*spcm.channels, 8)' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 1049|   	if (spcm->format == SND_PCM_FORMAT_IMA_ADPCM) {
# 1050|   		s16->adpcm_states = calloc(spcm->channels, sizeof(*s16->adpcm_states));
# 1051|-> 		if (!s16->adpcm_states)
# 1052|   			return -ENOMEM;
# 1053|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1066:25: warning[-Wanalyzer-malloc-leak]: leak of 'malloc(*meter.buf_size * (long unsigned int)*spcm.channels * 2)'
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1054:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1055:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1059:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1060:12: branch_false: following 'false' branch (when 'a' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1065:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1066:25: danger: 'malloc(*meter.buf_size * (long unsigned int)*spcm.channels * 2)' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1064|   	}
# 1065|   	s16->buf_areas = a;
# 1066|-> 	for (c = 0; c < spcm->channels; c++, a++) {
# 1067|   		a->addr = s16->buf + c * meter->buf_size;
# 1068|   		a->first = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1066:46: warning[-Wanalyzer-malloc-leak]: leak of 'a'
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1055:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1059:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1059:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1060:12: branch_false: following 'false' branch (when 'a' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1065:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1066:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1067:38: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1066:46: danger: 'a' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
# 1064|   	}
# 1065|   	s16->buf_areas = a;
# 1066|-> 	for (c = 0; c < spcm->channels; c++, a++) {
# 1067|   		a->addr = s16->buf + c * meter->buf_size;
# 1068|   		a->first = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1072:1: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1054:20: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1055:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1059:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1060:12: branch_false: following 'false' branch (when 'a' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1065:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1066:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1067:38: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1072:1: danger: '<unknown>' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1070|   	}
# 1071|   	return 0;
# 1072|-> }
# 1073|   
# 1074|   static void s16_disable(snd_pcm_scope_t *scope)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1072:1: warning[-Wanalyzer-malloc-leak]: leak of 'a'
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1055:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1059:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1059:13: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1060:12: branch_false: following 'false' branch (when 'a' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1065:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1066:21: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1066:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_meter.c:1072:1: danger: 'a' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
# 1070|   	}
# 1071|   	return 0;
# 1072|-> }
# 1073|   
# 1074|   static void s16_disable(snd_pcm_scope_t *scope)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
alsa-lib-1.2.15.1/src/pcm/pcm_mmap_emul.c:420:15: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_mmap_emul.c:414:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_mmap_emul.c:415:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_mmap_emul.c:417:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_mmap_emul.c:420:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_mmap_emul.c:420:15: danger: 'map' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  418|   	map->gen.close_slave = close_slave;
#  419|   
#  420|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_MMAP_EMUL, name,
#  421|   			  slave->stream, slave->mode);
#  422|   	if (err < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
alsa-lib-1.2.15.1/src/pcm/pcm_mulaw.c:452:9: warning[-Wanalyzer-malloc-leak]: leak of 'mulaw'
alsa-lib-1.2.15.1/src/pcm/pcm_mulaw.c:444:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_mulaw.c:445:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_mulaw.c:448:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_mulaw.c:449:12: branch_false: following 'false' branch (when 'mulaw' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_mulaw.c:452:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_mulaw.c:452:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_mulaw.c:452:9: danger: 'mulaw' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  450|   		return -ENOMEM;
#  451|   	}
#  452|-> 	snd_pcm_plugin_init(&mulaw->plug);
#  453|   	mulaw->sformat = sformat;
#  454|   	mulaw->plug.read = snd_pcm_mulaw_read_areas;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:864:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:19: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:867:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:869:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:872:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:54: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:33: throw: if 'snd_pcm_query_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:33: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  871|   
#  872|   	for (i = 0; i < multi->slaves_count; i++) {
#  873|-> 		slave_maps[i] = snd_pcm_query_chmaps(multi->slaves[i].pcm);
#  874|   		if (!slave_maps[i])
#  875|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:33: warning[-Wanalyzer-malloc-leak]: leak of 'maps'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:863:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:864:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:867:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:869:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:872:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:54: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:33: throw: if 'snd_pcm_query_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:33: danger: 'maps' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  871|   
#  872|   	for (i = 0; i < multi->slaves_count; i++) {
#  873|-> 		slave_maps[i] = snd_pcm_query_chmaps(multi->slaves[i].pcm);
#  874|   		if (!slave_maps[i])
#  875|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:897:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:864:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:19: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:867:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:869:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:872:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:54: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:895:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:896:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:895:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:896:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:897:25: throw: if 'snd_pcm_free_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:897:25: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  895|   	for (i = 0; i < multi->slaves_count; i++) {
#  896|   		if (slave_maps[i])
#  897|-> 			snd_pcm_free_chmaps(slave_maps[i]);
#  898|   	}
#  899|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:897:25: warning[-Wanalyzer-malloc-leak]: leak of 'maps'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:863:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:864:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:867:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:868:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:895:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:896:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:896:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:897:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:897:25: throw: if 'snd_pcm_free_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:897:25: danger: 'maps' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  895|   	for (i = 0; i < multi->slaves_count; i++) {
#  896|   		if (slave_maps[i])
#  897|-> 			snd_pcm_free_chmaps(slave_maps[i]);
#  898|   	}
#  899|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:901:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:864:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:19: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:867:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:869:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:872:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:873:54: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:895:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:896:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:900:12: branch_true: following 'true' branch (when 'err != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:901:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:901:17: throw: if 'snd_pcm_free_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:901:17: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  899|   
#  900|   	if (err) {
#  901|-> 		snd_pcm_free_chmaps(maps);
#  902|   		return NULL;
#  903|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:901:17: warning[-Wanalyzer-malloc-leak]: leak of 'maps'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:863:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:864:12: branch_false: following 'false' branch (when 'maps' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:866:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:867:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:868:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:900:12: branch_true: following 'true' branch (when 'err != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:901:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:901:17: throw: if 'snd_pcm_free_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:901:17: danger: 'maps' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  899|   
#  900|   	if (err) {
#  901|-> 		snd_pcm_free_chmaps(maps);
#  902|   		return NULL;
#  903|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:922:33: warning[-Wanalyzer-malloc-leak]: leak of 'map'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:917:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:918:12: branch_false: following 'false' branch (when 'map' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:918:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:921:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:922:51: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:922:33: throw: if 'snd_pcm_get_chmap' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:922:33: danger: 'map' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  920|   
#  921|   	for (i = 0; i < multi->slaves_count; i++) {
#  922|-> 		slave_maps[i] = snd_pcm_get_chmap(multi->slaves[i].pcm);
#  923|   		if (!slave_maps[i])
#  924|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def300]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:969:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*slave_maps[<unknown>]'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:953:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:953:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:956:21: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:956:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:967:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:968:50: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:969:17: danger: use of uninitialized value '*slave_maps[<unknown>]' here
#  967|   	for (i = 0; i < multi->channels_count; i++) {
#  968|   		snd_pcm_multi_channel_t *bind = &multi->channels[i];
#  969|-> 		slave_maps[bind->slave_idx]->pos[bind->slave_channel] =
#  970|   			map->pos[i];
#  971|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:974:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:953:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:953:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:956:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:957:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:957:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:959:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:956:46: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:956:21: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:956:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:967:21: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:967:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:973:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:974:63: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:974:23: throw: if 'snd_pcm_set_chmap' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:974:23: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  972|   
#  973|   	for (i = 0; i < multi->slaves_count; i++) {
#  974|-> 		err = snd_pcm_set_chmap(multi->slaves[i].pcm, slave_maps[i]);
#  975|   		if (err < 0)
#  976|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1133:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1089:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1090:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1090:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1091:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1092:9: branch_true: following 'true' branch (when 'slaves_count > master_slave')...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1094:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1095:12: branch_false: following 'false' branch (when 'multi' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1099:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1104:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1108:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1109:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1110:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1110:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1115:21: branch_true: following 'true' branch (when 'i < slaves_count')...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1116:62: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1117:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1118:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1122:21: branch_false: following 'false' branch (when 'i >= channels_count')...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1131:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1133:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1133:15: danger: '<unknown>' leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
# 1131|   	multi->channels_count = channels_count;
# 1132|   
# 1133|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_MULTI, name, stream,
# 1134|   			  multi->slaves[0].pcm->mode);
# 1135|   	if (err < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1133:15: warning[-Wanalyzer-malloc-leak]: leak of 'multi'
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1089:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1090:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1090:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1091:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1092:9: branch_true: following 'true' branch (when 'slaves_count > master_slave')...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1094:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1094:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1095:12: branch_false: following 'false' branch (when 'multi' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1099:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1104:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1108:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1110:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1110:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1115:21: branch_true: following 'true' branch (when 'i < slaves_count')...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1116:62: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1117:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1118:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1122:21: branch_false: following 'false' branch (when 'i >= channels_count')...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1131:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1133:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_multi.c:1133:15: danger: 'multi' leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
# 1131|   	multi->channels_count = channels_count;
# 1132|   
# 1133|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_MULTI, name, stream,
# 1134|   			  multi->slaves[0].pcm->mode);
# 1135|   	if (err < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def304]
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:401:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:385:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:387:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:387:22: acquire_resource: opened here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:388:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:399:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:400:12: branch_true: following 'true' branch (when 'null' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:401:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:401:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:401:17: danger: 'fd' leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  399|   	null = calloc(1, sizeof(snd_pcm_null_t));
#  400|   	if (!null) {
#  401|-> 		close(fd);
#  402|   		return -ENOMEM;
#  403|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def305]
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:407:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:385:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:387:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:387:22: acquire_resource: opened here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:388:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:399:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:400:12: branch_false: following 'false' branch (when 'null' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:404:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:407:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:407:15: danger: 'fd' leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  405|   	null->state = SND_PCM_STATE_OPEN;
#  406|   
#  407|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_NULL, name, stream, mode);
#  408|   	if (err < 0) {
#  409|   		close(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:407:15: warning[-Wanalyzer-malloc-leak]: leak of 'null'
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:385:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:387:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:388:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:399:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:399:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:400:12: branch_false: following 'false' branch (when 'null' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:404:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:407:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:407:15: danger: 'null' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  405|   	null->state = SND_PCM_STATE_OPEN;
#  406|   
#  407|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_NULL, name, stream, mode);
#  408|   	if (err < 0) {
#  409|   		close(fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def307]
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:409:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd'
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:385:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_false: following 'false' branch (when 'stream != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:393:22: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:393:22: acquire_resource: opened here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:394:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:399:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:400:12: branch_false: following 'false' branch (when 'null' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:404:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:408:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:409:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:409:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:409:17: danger: 'fd' leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  407|   	err = snd_pcm_new(&pcm, SND_PCM_TYPE_NULL, name, stream, mode);
#  408|   	if (err < 0) {
#  409|-> 		close(fd);
#  410|   		free(null);
#  411|   		return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:409:17: warning[-Wanalyzer-malloc-leak]: leak of 'null'
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:385:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:386:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:387:22: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:388:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:399:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:399:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:400:12: branch_false: following 'false' branch (when 'null' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:404:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:408:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:409:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:409:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_null.c:409:17: danger: 'null' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  407|   	err = snd_pcm_new(&pcm, SND_PCM_TYPE_NULL, name, stream, mode);
#  408|   	if (err < 0) {
#  409|-> 		close(fd);
#  410|   		free(null);
#  411|   		return err;

Error: CPPCHECK_WARNING (CWE-457): [#def309]
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:713: error[uninitvar]: Uninitialized variable: new
#  711|   		}
#  712|   		if (err) {
#  713|-> 			plug->gen.slave = new;
#  714|   		}
#  715|   		k++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1180:15: warning[-Wanalyzer-malloc-leak]: leak of 'plug'
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1164:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1166:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1166:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1167:12: branch_false: following 'false' branch (when 'plug' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1169:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1180:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1180:15: danger: 'plug' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1178|   	plug->tt_sused = tt_sused;
# 1179|   
# 1180|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_PLUG, name, slave->stream, slave->mode);
# 1181|   	if (err < 0) {
# 1182|   		free(plug);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1189:23: warning[-Wanalyzer-malloc-leak]: leak of 'plug'
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1164:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1166:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1166:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1167:12: branch_false: following 'false' branch (when 'plug' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1169:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1181:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1185:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1188:12: branch_true: following 'true' branch (when 'rate_converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1189:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1189:23: throw: if 'snd_config_copy' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_plug.c:1189:23: danger: 'plug' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 1187|   	pcm->fast_op_arg = slave->fast_op_arg;
# 1188|   	if (rate_converter) {
# 1189|-> 		err = snd_config_copy(&plug->rate_converter,
# 1190|   				      (snd_config_t *)rate_converter);
# 1191|   		if (err < 0) {

Error: CPPCHECK_WARNING (CWE-457): [#def312]
alsa-lib-1.2.15.1/src/pcm/pcm_plugin.c:608: error[legacyUninitvar]: Uninitialized variable: *&swparams
#  606|   		if (slave->avail_min != needed_slave_avail_min) {
#  607|   			snd_pcm_sw_params_t *swparams;
#  608|-> 			snd_pcm_sw_params_alloca(&swparams);
#  609|   			/* pray that changing sw_params while running is
#  610|   			 * properly implemented in all downstream plugins...

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1429:26: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1553:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1553:23: call_function: calling 'rate_open_func' from 'snd_pcm_rate_open'
# 1427|   	}
# 1428|   
# 1429|-> 	open_conf_func = snd_dlobj_cache_get(lib, open_conf_name, NULL, verbose && converter_conf != NULL);
# 1430|   	if (open_conf_func) {
# 1431|   		err = open_conf_func(SND_PCM_RATE_PLUGIN_VERSION,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1431:23: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1553:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1553:23: call_function: calling 'rate_open_func' from 'snd_pcm_rate_open'
# 1429|   	open_conf_func = snd_dlobj_cache_get(lib, open_conf_name, NULL, verbose && converter_conf != NULL);
# 1430|   	if (open_conf_func) {
# 1431|-> 		err = open_conf_func(SND_PCM_RATE_PLUGIN_VERSION,
# 1432|   				     &rate->obj, &rate->ops, converter_conf);
# 1433|   		if (!err) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1442:21: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1553:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1553:23: call_function: calling 'rate_open_func' from 'snd_pcm_rate_open'
# 1440|   	}
# 1441|   
# 1442|-> 	open_func = snd_dlobj_cache_get(lib, open_name, NULL, verbose);
# 1443|   	if (!open_func)
# 1444|   		return -ENOENT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1448:15: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1553:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1553:23: call_function: calling 'rate_open_func' from 'snd_pcm_rate_open'
# 1446|   	rate->open_func = open_func;
# 1447|   
# 1448|-> 	err = open_func(SND_PCM_RATE_PLUGIN_VERSION, &rate->obj, &rate->ops);
# 1449|   	if (!err)
# 1450|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1474:13: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: call_function: calling 'is_string_array' from 'snd_pcm_rate_open'
# 1472|   	snd_config_iterator_t i;
# 1473|   
# 1474|-> 	if (snd_config_get_type(conf) != SND_CONFIG_TYPE_COMPOUND)
# 1475|   		return 0;
# 1476|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1477:13: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: call_function: calling 'is_string_array' from 'snd_pcm_rate_open'
# 1475|   		return 0;
# 1476|   
# 1477|-> 	i = snd_config_iterator_first(conf);
# 1478|   	if (i && i != snd_config_iterator_end(conf)) {
# 1479|   		snd_config_t *n = snd_config_iterator_entry(i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1478:23: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: call_function: calling 'is_string_array' from 'snd_pcm_rate_open'
# 1476|   
# 1477|   	i = snd_config_iterator_first(conf);
# 1478|-> 	if (i && i != snd_config_iterator_end(conf)) {
# 1479|   		snd_config_t *n = snd_config_iterator_entry(i);
# 1480|   		const char *id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1479:35: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: call_function: calling 'is_string_array' from 'snd_pcm_rate_open'
# 1477|   	i = snd_config_iterator_first(conf);
# 1478|   	if (i && i != snd_config_iterator_end(conf)) {
# 1479|-> 		snd_config_t *n = snd_config_iterator_entry(i);
# 1480|   		const char *id;
# 1481|   		if (snd_config_get_id(n, &id) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1481:21: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1504:5: enter_function: entry to 'snd_pcm_rate_open'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: call_function: calling 'is_string_array' from 'snd_pcm_rate_open'
# 1479|   		snd_config_t *n = snd_config_iterator_entry(i);
# 1480|   		const char *id;
# 1481|-> 		if (snd_config_get_id(n, &id) < 0)
# 1482|   			return 0;
# 1483|   		if (id && strcmp(id, "0") != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1535:15: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1535:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1535:15: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
# 1533|   	rate->plugin_version = SND_PCM_RATE_PLUGIN_VERSION;
# 1534|   
# 1535|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_RATE, name, slave->stream, slave->mode);
# 1536|   	if (err < 0) {
# 1537|   		free(rate);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: throw: if 'snd_config_get_string' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 1550|   			}
# 1551|   		}
# 1552|-> 	} else if (!snd_config_get_string(converter, &type))
# 1553|   		err = rate_open_func(rate, type, NULL, 1);
# 1554|   	else if (is_string_array(converter)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: throw: if 'snd_config_iterator_first' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
# 1554|   	else if (is_string_array(converter)) {
# 1555|   		snd_config_iterator_t i, next;
# 1556|-> 		snd_config_for_each(i, next, converter) {
# 1557|   			snd_config_t *n = snd_config_iterator_entry(i);
# 1558|   			if (snd_config_get_string(n, &type) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1557:43: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1557:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1557:43: throw: if 'snd_config_iterator_entry' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1557:43: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
# 1555|   		snd_config_iterator_t i, next;
# 1556|   		snd_config_for_each(i, next, converter) {
# 1557|-> 			snd_config_t *n = snd_config_iterator_entry(i);
# 1558|   			if (snd_config_get_string(n, &type) < 0)
# 1559|   				break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1558:29: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1557:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1558:29: throw: if 'snd_config_get_string' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1558:29: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
# 1556|   		snd_config_for_each(i, next, converter) {
# 1557|   			snd_config_t *n = snd_config_iterator_entry(i);
# 1558|-> 			if (snd_config_get_string(n, &type) < 0)
# 1559|   				break;
# 1560|   			err = rate_open_func(rate, type, NULL, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: throw: if 'snd_config_get_type' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 1562|   				break;
# 1563|   		}
# 1564|-> 	} else if (snd_config_get_type(converter) == SND_CONFIG_TYPE_COMPOUND) {
# 1565|   		snd_config_iterator_t i, next;
# 1566|   		snd_config_for_each(i, next, converter) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: throw: if 'snd_config_iterator_first' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
# 1564|   	} else if (snd_config_get_type(converter) == SND_CONFIG_TYPE_COMPOUND) {
# 1565|   		snd_config_iterator_t i, next;
# 1566|-> 		snd_config_for_each(i, next, converter) {
# 1567|   			snd_config_t *n = snd_config_iterator_entry(i);
# 1568|   			const char *id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1567:43: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1567:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1567:43: throw: if 'snd_config_iterator_entry' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1567:43: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
# 1565|   		snd_config_iterator_t i, next;
# 1566|   		snd_config_for_each(i, next, converter) {
# 1567|-> 			snd_config_t *n = snd_config_iterator_entry(i);
# 1568|   			const char *id;
# 1569|   			if (snd_config_get_id(n, &id) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1569:29: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1567:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1569:29: throw: if 'snd_config_get_id' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1569:29: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
# 1567|   			snd_config_t *n = snd_config_iterator_entry(i);
# 1568|   			const char *id;
# 1569|-> 			if (snd_config_get_id(n, &id) < 0)
# 1570|   				continue;
# 1571|   			if (strcmp(id, "name") != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1573:31: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1567:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1573:31: throw: if 'snd_config_get_string' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1573:31: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 1571|   			if (strcmp(id, "name") != 0)
# 1572|   				continue;
# 1573|-> 			err = snd_config_get_string(n, &type);
# 1574|   			if (err < 0) {
# 1575|   				snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1575:33: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1567:43: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1574:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1575:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1575:33: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1575:33: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
# 1573|   			err = snd_config_get_string(n, &type);
# 1574|   			if (err < 0) {
# 1575|-> 				snd_pcm_free(pcm);
# 1576|   				free(rate);
# 1577|   				return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1582:25: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1581:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1582:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1582:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1582:25: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
# 1580|   		}
# 1581|   		if (!type) {
# 1582|-> 			snd_error(PCM, "No name given for rate converter");
# 1583|   			snd_pcm_free(pcm);
# 1584|   			free(rate);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1583:25: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1566:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1581:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1582:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1583:25: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1583:25: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
# 1581|   		if (!type) {
# 1582|   			snd_error(PCM, "No name given for rate converter");
# 1583|-> 			snd_pcm_free(pcm);
# 1584|   			free(rate);
# 1585|   			return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1589:17: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1589:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1589:17: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1589:17: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
# 1587|   		err = rate_open_func(rate, type, converter, 1);
# 1588|   	} else {
# 1589|-> 		snd_error(PCM, "Invalid type for rate converter");
# 1590|   		snd_pcm_free(pcm);
# 1591|   		free(rate);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1590:17: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1564:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1589:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1590:17: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1590:17: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
# 1588|   	} else {
# 1589|   		snd_error(PCM, "Invalid type for rate converter");
# 1590|-> 		snd_pcm_free(pcm);
# 1591|   		free(rate);
# 1592|   		return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1595:17: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1594:12: branch_true: following 'true' branch (when 'err < 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1595:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1595:17: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1595:17: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
# 1593|   	}
# 1594|   	if (err < 0) {
# 1595|-> 		snd_error(PCM, "Cannot find rate converter");
# 1596|   		snd_pcm_free(pcm);
# 1597|   		free(rate);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1596:17: warning[-Wanalyzer-malloc-leak]: leak of 'rate'
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1518:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1519:12: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1522:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1523:12: branch_false: following 'false' branch (when 'rate' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1526:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1536:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1543:12: branch_false: following 'false' branch (when 'converter' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1552:19: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1554:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1556:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1594:12: branch_true: following 'true' branch (when 'err < 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1595:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1596:17: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_rate.c:1596:17: danger: 'rate' leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
# 1594|   	if (err < 0) {
# 1595|   		snd_error(PCM, "Cannot find rate converter");
# 1596|-> 		snd_pcm_free(pcm);
# 1597|   		free(rate);
# 1598|   		return -ENOENT;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def339]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:348:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sum.as_sint64'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:348:25: danger: use of uninitialized value 'sum.as_sint64' here
#  346|   			goto *add;
#  347|   		add_int64_att:
#  348|-> 			sum.as_sint64 += (int64_t) sample * ttp->as_int;
#  349|   			goto after_sum;
#  350|   		add_int64_noatt:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def340]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:352:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sum.as_sint64'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:351:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:352:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:352:33: danger: use of uninitialized value 'sum.as_sint64' here
#  350|   		add_int64_noatt:
#  351|   			if (ttp->as_int)
#  352|-> 				sum.as_sint64 += sample;
#  353|   			goto after_sum;
#  354|   #if SND_PCM_PLUGIN_ROUTE_FLOAT

Error: GCC_ANALYZER_WARNING (CWE-457): [#def341]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:356:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sum.as_float'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:356:25: danger: use of uninitialized value 'sum.as_float' here
#  354|   #if SND_PCM_PLUGIN_ROUTE_FLOAT
#  355|   		add_float_att:
#  356|-> 			sum.as_float += sample * ttp->as_float;
#  357|   			goto after_sum;
#  358|   		add_float_noatt:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def342]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:360:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sum.as_float'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:359:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:360:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:360:33: danger: use of uninitialized value 'sum.as_float' here
#  358|   		add_float_noatt:
#  359|   			if (ttp->as_int)
#  360|-> 				sum.as_float += sample;
#  361|   			goto after_sum;
#  362|   #endif

Error: GCC_ANALYZER_WARNING (CWE-457): [#def343]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:371:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sum.as_sint64'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:371:17: danger: use of uninitialized value 'sum.as_sint64' here
#  369|   		goto *norm;
#  370|   	norm_int64_att:
#  371|-> 		div(sum.as_sint64);
#  372|   		/* fallthru */
#  373|   	norm_int64_noatt:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def344]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:374:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sum.as_sint64'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:374:21: danger: use of uninitialized value 'sum.as_sint64' here
#  372|   		/* fallthru */
#  373|   	norm_int64_noatt:
#  374|-> 		if (sum.as_sint64 > (int64_t)0x7fffffff)
#  375|   			sample = 0x7fffffff;	/* maximum positive value */
#  376|   		else if (sum.as_sint64 < -(int64_t)0x80000000)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def345]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:384:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'sum.as_float'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:384:37: danger: use of uninitialized value 'sum.as_float' here
#  382|   #if SND_PCM_PLUGIN_ROUTE_FLOAT
#  383|   	norm_float:
#  384|-> 		sum.as_float = rint(sum.as_float);
#  385|   		if (sum.as_float > (int64_t)0x7fffffff)
#  386|   			sample = 0x7fffffff;	/* maximum positive value */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:646:13: warning[-Wanalyzer-malloc-leak]: leak of 'snd_pcm_route_get_chmap(pcm)'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:673:32: enter_function: entry to 'snd_pcm_route_query_chmaps'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:682:15: call_function: calling 'snd_pcm_route_get_chmap' from 'snd_pcm_route_query_chmaps'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:682:15: return_function: returning to 'snd_pcm_route_query_chmaps' from 'snd_pcm_route_get_chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:683:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:685:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:685:16: throw: if '_snd_pcm_make_single_query_chmaps' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:646:13: danger: 'snd_pcm_route_get_chmap(pcm)' leaks here; was allocated at [(8)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/7)
#  644|   	unsigned int src, dst, nsrcs;
#  645|   
#  646|-> 	if (route->chmap_override)
#  647|   		return _snd_pcm_choose_fixed_chmap(pcm, route->chmap_override);
#  648|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def347]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:789:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: this call could return NULL
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:789:9: danger: 'chmap' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/2)
#  787|   		       MAX_CHMAP_CHANNELS * sizeof(unsigned int));
#  788|   
#  789|-> 	chmap->channels = 0;
#  790|   	snd_config_for_each(i, inext, tt) {
#  791|   		const char *id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: throw: if 'snd_config_iterator_first' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
#  788|   
#  789|   	chmap->channels = 0;
#  790|-> 	snd_config_for_each(i, inext, tt) {
#  791|   		const char *id;
#  792|   		snd_config_iterator_t j, jnext;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: throw: if 'snd_config_iterator_entry' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/2)
#  791|   		const char *id;
#  792|   		snd_config_iterator_t j, jnext;
#  793|-> 		snd_config_t *in = snd_config_iterator_entry(i);
#  794|   
#  795|   		if (snd_config_get_id(in, &id) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:795:21: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:795:21: throw: if 'snd_config_get_id' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:795:21: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
#  793|   		snd_config_t *in = snd_config_iterator_entry(i);
#  794|   
#  795|-> 		if (snd_config_get_id(in, &id) < 0)
#  796|   			continue;
#  797|   		if (snd_config_get_type(in) != SND_CONFIG_TYPE_COMPOUND)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:21: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:21: throw: if 'snd_config_get_type' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:21: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
#  795|   		if (snd_config_get_id(in, &id) < 0)
#  796|   			continue;
#  797|-> 		if (snd_config_get_type(in) != SND_CONFIG_TYPE_COMPOUND)
#  798|   			goto err;
#  799|   		snd_config_for_each(j, jnext, in) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: throw: if 'snd_config_iterator_first' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
#  797|   		if (snd_config_get_type(in) != SND_CONFIG_TYPE_COMPOUND)
#  798|   			goto err;
#  799|-> 		snd_config_for_each(j, jnext, in) {
#  800|   			int ch, k, found;
#  801|   			long schannel;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:802:47: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:802:47: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:802:47: throw: if 'snd_config_iterator_entry' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:802:47: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
#  800|   			int ch, k, found;
#  801|   			long schannel;
#  802|-> 			snd_config_t *jnode = snd_config_iterator_entry(j);
#  803|   			if (snd_config_get_id(jnode, &id) < 0)
#  804|   				continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:803:29: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:802:47: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:803:29: throw: if 'snd_config_get_id' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:803:29: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
#  801|   			long schannel;
#  802|   			snd_config_t *jnode = snd_config_iterator_entry(j);
#  803|-> 			if (snd_config_get_id(jnode, &id) < 0)
#  804|   				continue;
#  805|   			if (safe_strtol(id, &schannel) >= 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:807:36: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:807:36: throw: if 'snd_pcm_chmap_from_string' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:807:36: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
#  805|   			if (safe_strtol(id, &schannel) >= 0)
#  806|   				continue;
#  807|-> 			ch = (int) snd_pcm_chmap_from_string(id);
#  808|   			if (ch == -1)
#  809|   				goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:821:33: warning[-Wanalyzer-malloc-leak]: leak of 'chmap'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:785:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:786:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:790:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:793:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:797:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:799:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:808:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:808:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:812:37: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:817:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:817:28: branch_false: following 'false' branch (when 'found == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:820:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:820:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:824:36: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:808:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:808:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:820:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:821:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:821:33: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:821:33: danger: 'chmap' leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
#  819|   
#  820|   			if (chmap->channels >= MAX_CHMAP_CHANNELS) {
#  821|-> 				snd_error(PCM, "Too many channels in ttable chmap");
#  822|   				goto err;
#  823|   			}

Error: COMPILER_WARNING: [#def357]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c: scope_hint: In function 'route_load_ttable'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:964:46: warning[-Wunused-but-set-variable=]: variable 't' set but not used
#  964 |                 snd_pcm_route_ttable_entry_t t = 0;
#      |                                              ^
#  962|   	params->dsts = dptr;
#  963|   	for (dst_channel = 0; dst_channel < dused; ++dst_channel) {
#  964|-> 		snd_pcm_route_ttable_entry_t t = 0;
#  965|   		int att = 0;
#  966|   		int nsrcs = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:1043:9: warning[-Wanalyzer-malloc-leak]: leak of 'route'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:1035:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:1039:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:1040:12: branch_false: following 'false' branch (when 'route' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:1043:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:1043:9: throw: if 'snd1_pcm_plugin_init' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:1043:9: danger: 'route' leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
# 1041|   		return -ENOMEM;
# 1042|   	}
# 1043|-> 	snd_pcm_plugin_init(&route->plug);
# 1044|   	route->sformat = sformat;
# 1045|   	route->schannels = schannels;

Error: COMPILER_WARNING (CWE-252): [#def359]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c: scope_hint: In function 'snd_pcm_share_thread'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:418:39: warning[-Wunused-result]: ignoring return value of 'read' declared with attribute 'warn_unused_result'
#  418 |                                 (void)read(pfd[0].fd, buf, 1);
#      |                                       ^~~~~~~~~~~~~~~~~~~~~~~
#  416|   			if (err > 0 && (pfd[0].revents & POLLIN) != 0) {
#  417|   				char buf[1];
#  418|-> 				(void)read(pfd[0].fd, buf, 1);
#  419|   			}
#  420|   		} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1434:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1434:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1434:15: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1432|   	memcpy(share->slave_channels, channels_map, channels * sizeof(*share->slave_channels));
# 1433|   
# 1434|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_SHARE, name, stream, mode);
# 1435|   	if (err < 0) {
# 1436|   		free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1434:15: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1434:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1434:15: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 1432|   	memcpy(share->slave_channels, channels_map, channels * sizeof(*share->slave_channels));
# 1433|   
# 1434|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_SHARE, name, stream, mode);
# 1435|   	if (err < 0) {
# 1436|   		free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1442:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_true: following 'true' branch (when 'err < 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1442:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1442:17: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1442:17: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 1440|   	err = socketpair(AF_LOCAL, SOCK_STREAM, 0, sd);
# 1441|   	if (err < 0) {
# 1442|-> 		snd_pcm_free(pcm);
# 1443|   		free(share->slave_channels);
# 1444|   		free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1442:17: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_true: following 'true' branch (when 'err < 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1442:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1442:17: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1442:17: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 1440|   	err = socketpair(AF_LOCAL, SOCK_STREAM, 0, sd);
# 1441|   	if (err < 0) {
# 1442|-> 		snd_pcm_free(pcm);
# 1443|   		free(share->slave_channels);
# 1444|   		free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1455:39: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1451:20: branch_true: following 'true' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1453:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1455:39: throw: if 'poll' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1455:39: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 1453|   			pfd.fd = sd[0];
# 1454|   			pfd.events = POLLOUT;
# 1455|-> 			while ((err = poll(&pfd, 1, 0)) == 1) {
# 1456|   				char buf[1] = {0};
# 1457|   				err = write(sd[0], buf, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1455:39: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1451:20: branch_true: following 'true' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1453:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1455:39: throw: if 'poll' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1455:39: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
# 1453|   			pfd.fd = sd[0];
# 1454|   			pfd.events = POLLOUT;
# 1455|-> 			while ((err = poll(&pfd, 1, 0)) == 1) {
# 1456|   				char buf[1] = {0};
# 1457|   				err = write(sd[0], buf, 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1457:39: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1451:20: branch_true: following 'true' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1453:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1455:32: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1456:38: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1457:39: throw: if 'write' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1457:39: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 1455|   			while ((err = poll(&pfd, 1, 0)) == 1) {
# 1456|   				char buf[1] = {0};
# 1457|-> 				err = write(sd[0], buf, 1);
# 1458|   				assert(err != 0);
# 1459|   				if (err != 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1457:39: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1451:20: branch_true: following 'true' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1453:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1455:32: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1456:38: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1457:39: throw: if 'write' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1457:39: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
# 1455|   			while ((err = poll(&pfd, 1, 0)) == 1) {
# 1456|   				char buf[1] = {0};
# 1457|-> 				err = write(sd[0], buf, 1);
# 1458|   				assert(err != 0);
# 1459|   				if (err != 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1466:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1466:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1466:17: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
# 1464|   	if (err < 0) {
# 1465|   		err = -errno;
# 1466|-> 		close(sd[0]);
# 1467|   		close(sd[1]);
# 1468|   		snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1466:17: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1466:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1466:17: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 1464|   	if (err < 0) {
# 1465|   		err = -errno;
# 1466|-> 		close(sd[0]);
# 1467|   		close(sd[1]);
# 1468|   		snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1467:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1467:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1467:17: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
# 1465|   		err = -errno;
# 1466|   		close(sd[0]);
# 1467|-> 		close(sd[1]);
# 1468|   		snd_pcm_free(pcm);
# 1469|   		free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1467:17: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1467:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1467:17: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 1465|   		err = -errno;
# 1466|   		close(sd[0]);
# 1467|-> 		close(sd[1]);
# 1468|   		snd_pcm_free(pcm);
# 1469|   		free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1468:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1468:17: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1468:17: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
# 1466|   		close(sd[0]);
# 1467|   		close(sd[1]);
# 1468|-> 		snd_pcm_free(pcm);
# 1469|   		free(share->slave_channels);
# 1470|   		free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1468:17: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_true: following 'true' branch (when 'stream == 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1449:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1468:17: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1468:17: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 1466|   		close(sd[0]);
# 1467|   		close(sd[1]);
# 1468|-> 		snd_pcm_free(pcm);
# 1469|   		free(share->slave_channels);
# 1470|   		free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: throw: if 'snd_pcm_open' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
# 1482|   	if (!slave) {
# 1483|   		snd_pcm_t *spcm;
# 1484|-> 		err = snd_pcm_open(&spcm, sname, stream, mode);
# 1485|   		if (err < 0) {
# 1486|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: throw: if 'snd_pcm_open' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
# 1482|   	if (!slave) {
# 1483|   		snd_pcm_t *spcm;
# 1484|-> 		err = snd_pcm_open(&spcm, sname, stream, mode);
# 1485|   		if (err < 0) {
# 1486|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1487:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1486:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1487:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1487:25: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
# 1485|   		if (err < 0) {
# 1486|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);
# 1487|-> 			close(sd[0]);
# 1488|   			close(sd[1]);
# 1489|   			snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1487:25: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1486:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1487:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1487:25: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
# 1485|   		if (err < 0) {
# 1486|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);
# 1487|-> 			close(sd[0]);
# 1488|   			close(sd[1]);
# 1489|   			snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1488:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1486:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1488:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1488:25: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
# 1486|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);
# 1487|   			close(sd[0]);
# 1488|-> 			close(sd[1]);
# 1489|   			snd_pcm_free(pcm);
# 1490|   			free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1488:25: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1486:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1488:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1488:25: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 1486|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);
# 1487|   			close(sd[0]);
# 1488|-> 			close(sd[1]);
# 1489|   			snd_pcm_free(pcm);
# 1490|   			free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1489:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1486:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1489:25: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1489:25: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/6)
# 1487|   			close(sd[0]);
# 1488|   			close(sd[1]);
# 1489|-> 			snd_pcm_free(pcm);
# 1490|   			free(share->slave_channels);
# 1491|   			free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1489:25: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1486:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1489:25: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1489:25: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
# 1487|   			close(sd[0]);
# 1488|   			close(sd[1]);
# 1489|-> 			snd_pcm_free(pcm);
# 1490|   			free(share->slave_channels);
# 1491|   			free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1499:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1496:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1497:20: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1498:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1499:25: throw: if 'snd_pcm_close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1499:25: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
# 1497|   		if (!slave) {
# 1498|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);
# 1499|-> 			snd_pcm_close(spcm);
# 1500|   			close(sd[0]);
# 1501|   			close(sd[1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1499:25: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1496:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1497:20: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1498:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1499:25: throw: if 'snd_pcm_close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1499:25: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
# 1497|   		if (!slave) {
# 1498|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);
# 1499|-> 			snd_pcm_close(spcm);
# 1500|   			close(sd[0]);
# 1501|   			close(sd[1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1500:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1496:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1497:20: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1498:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1500:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1500:25: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/6)
# 1498|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);
# 1499|   			snd_pcm_close(spcm);
# 1500|-> 			close(sd[0]);
# 1501|   			close(sd[1]);
# 1502|   			snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1500:25: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1496:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1497:20: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1498:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1500:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1500:25: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
# 1498|   			Pthread_mutex_unlock(&snd_pcm_share_slaves_mutex);
# 1499|   			snd_pcm_close(spcm);
# 1500|-> 			close(sd[0]);
# 1501|   			close(sd[1]);
# 1502|   			snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1501:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1496:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1497:20: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1498:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1501:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1501:25: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/6)
# 1499|   			snd_pcm_close(spcm);
# 1500|   			close(sd[0]);
# 1501|-> 			close(sd[1]);
# 1502|   			snd_pcm_free(pcm);
# 1503|   			free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1501:25: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1496:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1497:20: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1498:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1501:25: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1501:25: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
# 1499|   			snd_pcm_close(spcm);
# 1500|   			close(sd[0]);
# 1501|-> 			close(sd[1]);
# 1502|   			snd_pcm_free(pcm);
# 1503|   			free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1502:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1496:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1497:20: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1498:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1502:25: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1502:25: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
# 1500|   			close(sd[0]);
# 1501|   			close(sd[1]);
# 1502|-> 			snd_pcm_free(pcm);
# 1503|   			free(share->slave_channels);
# 1504|   			free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1502:25: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1484:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1485:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1496:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1497:20: branch_true: following 'true' branch (when 'slave' is NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1498:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1502:25: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1502:25: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
# 1500|   			close(sd[0]);
# 1501|   			close(sd[1]);
# 1502|-> 			snd_pcm_free(pcm);
# 1503|   			free(share->slave_channels);
# 1504|   			free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1528:41: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1475:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1476:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1528:41: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1528:41: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
# 1526|   			for (k = 0; k < sh->channels; ++k) {
# 1527|   				if (slave_map[sh->slave_channels[k]]) {
# 1528|-> 					snd_error(PCM, "Slave channel %d is already in use", sh->slave_channels[k]);
# 1529|   					Pthread_mutex_unlock(&slave->mutex);
# 1530|   					close(sd[0]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1528:41: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1475:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1476:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1528:41: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1528:41: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
# 1526|   			for (k = 0; k < sh->channels; ++k) {
# 1527|   				if (slave_map[sh->slave_channels[k]]) {
# 1528|-> 					snd_error(PCM, "Slave channel %d is already in use", sh->slave_channels[k]);
# 1529|   					Pthread_mutex_unlock(&slave->mutex);
# 1530|   					close(sd[0]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1530:41: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1475:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1476:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1530:41: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1530:41: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
# 1528|   					snd_error(PCM, "Slave channel %d is already in use", sh->slave_channels[k]);
# 1529|   					Pthread_mutex_unlock(&slave->mutex);
# 1530|-> 					close(sd[0]);
# 1531|   					close(sd[1]);
# 1532|   					snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1530:41: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1475:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1476:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1530:41: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1530:41: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
# 1528|   					snd_error(PCM, "Slave channel %d is already in use", sh->slave_channels[k]);
# 1529|   					Pthread_mutex_unlock(&slave->mutex);
# 1530|-> 					close(sd[0]);
# 1531|   					close(sd[1]);
# 1532|   					snd_pcm_free(pcm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1531:41: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1475:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1476:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1531:41: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1531:41: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/6)
# 1529|   					Pthread_mutex_unlock(&slave->mutex);
# 1530|   					close(sd[0]);
# 1531|-> 					close(sd[1]);
# 1532|   					snd_pcm_free(pcm);
# 1533|   					free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1531:41: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1475:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1476:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1531:41: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1531:41: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
# 1529|   					Pthread_mutex_unlock(&slave->mutex);
# 1530|   					close(sd[0]);
# 1531|-> 					close(sd[1]);
# 1532|   					snd_pcm_free(pcm);
# 1533|   					free(share->slave_channels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1532:41: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1427:33: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1475:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1476:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1532:41: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1532:41: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/6)
# 1530|   					close(sd[0]);
# 1531|   					close(sd[1]);
# 1532|-> 					snd_pcm_free(pcm);
# 1533|   					free(share->slave_channels);
# 1534|   					free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1532:41: warning[-Wanalyzer-malloc-leak]: leak of 'share'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1406:9: branch_true: following 'true' branch (when 'pcmp' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1407:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1422:17: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1423:12: branch_false: following 'false' branch (when 'share' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1428:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1432:53: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1435:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1440:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1441:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1448:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1464:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1474:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1475:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1476:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1482:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1522:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1524:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1532:41: throw: if 'snd1_pcm_free' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1532:41: danger: 'share' leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
# 1530|   					close(sd[0]);
# 1531|   					close(sd[1]);
# 1532|-> 					snd_pcm_free(pcm);
# 1533|   					free(share->slave_channels);
# 1534|   					free(share);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1675:9: warning[-Wanalyzer-malloc-leak]: leak of 'sname'
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1637:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1638:35: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1644:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1644:20: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1659:12: branch_false: following 'false' branch (when 'slave' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1663:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1669:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1673:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1674:17: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1674:37: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1675:9: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_share.c:1675:9: danger: 'sname' leaks here; was allocated at [(11)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/10)
# 1673|   	err = snd_config_get_string(sconf, &sname);
# 1674|   	sname = err >= 0 && sname ? strdup(sname) : NULL;
# 1675|-> 	snd_config_delete(sconf);
# 1676|   	if (sname == NULL) {
# 1677|   		snd_error(PCM, "slave.pcm is not a string");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def399]
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:647:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'sock'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:638:16: acquire_resource: stream socket created here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:639:12: branch_false: following 'false' branch (when 'sock >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:644:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:647:13: throw: if 'connect' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:647:13: danger: 'sock' leaks here
#  645|   	memcpy(addr->sun_path, filename, l);
#  646|   
#  647|-> 	if (connect(sock, (struct sockaddr *) addr, size) < 0) {
#  648|   		err = -errno;
#  649|   		snd_errornum(PCM, "connect failed");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:748:15: warning[-Wanalyzer-malloc-leak]: leak of 'shm'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:669:5: enter_function: entry to 'snd_pcm_shm_open'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:683:12: branch_false: following 'false' branch (when 'snamelen <= 255')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:686:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:686:18: call_function: calling 'make_local_socket' from 'snd_pcm_shm_open'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:686:18: return_function: returning to 'snd_pcm_shm_open' from 'make_local_socket'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:687:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:693:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:702:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:707:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:707:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:712:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:713:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:718:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:718:12: branch_false: following 'false' branch (when 'err == 16')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:723:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:723:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:728:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:729:12: branch_false: following 'false' branch (when 'result >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:732:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:733:12: branch_false: following 'false' branch (when 'ctrl' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:739:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:739:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:740:12: branch_false: following 'false' branch (when 'shm' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:745:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:748:15: throw: if 'snd1_pcm_new' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:748:15: danger: 'shm' leaks here; was allocated at [(26)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/25)
#  746|   	shm->ctrl = ctrl;
#  747|   
#  748|-> 	err = snd_pcm_new(&pcm, SND_PCM_TYPE_SHM, name, stream, mode);
#  749|   	if (err < 0) {
#  750|   		result = err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:771:17: warning[-Wanalyzer-malloc-leak]: leak of 'shm'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:669:5: enter_function: entry to 'snd_pcm_shm_open'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:683:12: branch_false: following 'false' branch (when 'snamelen <= 255')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:686:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:686:18: call_function: calling 'make_local_socket' from 'snd_pcm_shm_open'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:686:18: return_function: returning to 'snd_pcm_shm_open' from 'make_local_socket'
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:687:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:693:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:702:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:707:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:707:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:712:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:713:12: branch_false: following 'false' branch (when 'err >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:718:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:718:12: branch_false: following 'false' branch (when 'err == 16')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:723:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:723:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:728:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:729:12: branch_false: following 'false' branch (when 'result >= 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:732:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:733:12: branch_false: following 'false' branch (when 'ctrl' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:739:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:739:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:740:12: branch_false: following 'false' branch (when 'shm' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:745:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:749:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:751:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:771:17: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/pcm/pcm_shm.c:771:17: danger: 'shm' leaks here; was allocated at [(26)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/25)
#  769|    _err:
#  770|   	if (sock >= 0)
#  771|-> 		close(sock);
#  772|   	if (ctrl)
#  773|   		shmdt(ctrl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:771:23: warning[-Wanalyzer-malloc-leak]: leak of 'svol'
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:915:5: enter_function: entry to 'snd_pcm_softvol_open'
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:925:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:926:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:934:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:935:12: branch_false: following 'false' branch (when 'svol' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:937:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:937:15: call_function: calling 'softvol_load_control' from 'snd_pcm_softvol_open'
#  769|   
#  770|   	if (ctl_card < 0) {
#  771|-> 		err = snd_pcm_info(pcm, &info);
#  772|   		if (err < 0)
#  773|   			return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:774:28: warning[-Wanalyzer-malloc-leak]: leak of 'svol'
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:915:5: enter_function: entry to 'snd_pcm_softvol_open'
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:925:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:926:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:934:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:935:12: branch_false: following 'false' branch (when 'svol' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:937:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:937:15: call_function: calling 'softvol_load_control' from 'snd_pcm_softvol_open'
#  772|   		if (err < 0)
#  773|   			return err;
#  774|-> 		ctl_card = snd_pcm_info_get_card(&info);
#  775|   		if (ctl_card < 0) {
#  776|   			snd_error(PCM, "No card defined for softvol control");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:776:25: warning[-Wanalyzer-malloc-leak]: leak of 'svol'
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:915:5: enter_function: entry to 'snd_pcm_softvol_open'
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:925:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:926:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:934:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:935:12: branch_false: following 'false' branch (when 'svol' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:937:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:937:15: call_function: calling 'softvol_load_control' from 'snd_pcm_softvol_open'
#  774|   		ctl_card = snd_pcm_info_get_card(&info);
#  775|   		if (ctl_card < 0) {
#  776|-> 			snd_error(PCM, "No card defined for softvol control");
#  777|   			return -EINVAL;
#  778|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:781:15: warning[-Wanalyzer-malloc-leak]: leak of 'svol'
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:915:5: enter_function: entry to 'snd_pcm_softvol_open'
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:925:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:926:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:934:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:935:12: branch_false: following 'false' branch (when 'svol' is non-NULL)...
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:937:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_softvol.c:937:15: call_function: calling 'softvol_load_control' from 'snd_pcm_softvol_open'
#  779|   	}
#  780|   	sprintf(tmp_name, "hw:%d", ctl_card);
#  781|-> 	err = snd_ctl_open(&svol->ctl, tmp_name, 0);
#  782|   	if (err < 0) {
#  783|   		snd_error(PCM, "Cannot open CTL %s", tmp_name);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def406]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:529:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:529:34: danger: use of uninitialized value 'src' here
#  527|   #ifdef GET32_END
#  528|   while (0) {
#  529|-> get32_1_1000: sample = (uint32_t)as_u8c(src) << 24; goto GET32_END;
#  530|   get32_1_9000: sample = (uint32_t)(as_u8c(src) ^ 0x80) << 24; goto GET32_END;
#  531|   get32_12_1200: sample = (uint32_t)as_u16c(src) << 16; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def407]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:530:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:530:35: danger: use of uninitialized value 'src' here
#  528|   while (0) {
#  529|   get32_1_1000: sample = (uint32_t)as_u8c(src) << 24; goto GET32_END;
#  530|-> get32_1_9000: sample = (uint32_t)(as_u8c(src) ^ 0x80) << 24; goto GET32_END;
#  531|   get32_12_1200: sample = (uint32_t)as_u16c(src) << 16; goto GET32_END;
#  532|   get32_12_9200: sample = (uint32_t)(as_u16c(src) ^ 0x8000) << 16; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def408]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:531:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:531:35: danger: use of uninitialized value 'src' here
#  529|   get32_1_1000: sample = (uint32_t)as_u8c(src) << 24; goto GET32_END;
#  530|   get32_1_9000: sample = (uint32_t)(as_u8c(src) ^ 0x80) << 24; goto GET32_END;
#  531|-> get32_12_1200: sample = (uint32_t)as_u16c(src) << 16; goto GET32_END;
#  532|   get32_12_9200: sample = (uint32_t)(as_u16c(src) ^ 0x8000) << 16; goto GET32_END;
#  533|   get32_12_2100: sample = (uint32_t)bswap_16(as_u16c(src)) << 16; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def409]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:532:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:532:36: danger: use of uninitialized value 'src' here
#  530|   get32_1_9000: sample = (uint32_t)(as_u8c(src) ^ 0x80) << 24; goto GET32_END;
#  531|   get32_12_1200: sample = (uint32_t)as_u16c(src) << 16; goto GET32_END;
#  532|-> get32_12_9200: sample = (uint32_t)(as_u16c(src) ^ 0x8000) << 16; goto GET32_END;
#  533|   get32_12_2100: sample = (uint32_t)bswap_16(as_u16c(src)) << 16; goto GET32_END;
#  534|   get32_12_A100: sample = (uint32_t)bswap_16(as_u16c(src) ^ 0x80) << 16; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def410]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:534:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:534:35: danger: use of uninitialized value 'src' here
#  532|   get32_12_9200: sample = (uint32_t)(as_u16c(src) ^ 0x8000) << 16; goto GET32_END;
#  533|   get32_12_2100: sample = (uint32_t)bswap_16(as_u16c(src)) << 16; goto GET32_END;
#  534|-> get32_12_A100: sample = (uint32_t)bswap_16(as_u16c(src) ^ 0x80) << 16; goto GET32_END;
#  535|   get32_0123_1230: sample = as_u32c(src) << 8; goto GET32_END;
#  536|   get32_0123_9230: sample = (as_u32c(src) << 8) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def411]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:535:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:535:27: danger: use of uninitialized value 'src' here
#  533|   get32_12_2100: sample = (uint32_t)bswap_16(as_u16c(src)) << 16; goto GET32_END;
#  534|   get32_12_A100: sample = (uint32_t)bswap_16(as_u16c(src) ^ 0x80) << 16; goto GET32_END;
#  535|-> get32_0123_1230: sample = as_u32c(src) << 8; goto GET32_END;
#  536|   get32_0123_9230: sample = (as_u32c(src) << 8) ^ 0x80000000; goto GET32_END;
#  537|   get32_1230_3210: sample = bswap_32(as_u32c(src) >> 8); goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def412]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:536:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:536:28: danger: use of uninitialized value 'src' here
#  534|   get32_12_A100: sample = (uint32_t)bswap_16(as_u16c(src) ^ 0x80) << 16; goto GET32_END;
#  535|   get32_0123_1230: sample = as_u32c(src) << 8; goto GET32_END;
#  536|-> get32_0123_9230: sample = (as_u32c(src) << 8) ^ 0x80000000; goto GET32_END;
#  537|   get32_1230_3210: sample = bswap_32(as_u32c(src) >> 8); goto GET32_END;
#  538|   get32_1230_B210: sample = bswap_32((as_u32c(src) >> 8) ^ 0x80); goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def413]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:537:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:537:27: danger: use of uninitialized value 'src' here
#  535|   get32_0123_1230: sample = as_u32c(src) << 8; goto GET32_END;
#  536|   get32_0123_9230: sample = (as_u32c(src) << 8) ^ 0x80000000; goto GET32_END;
#  537|-> get32_1230_3210: sample = bswap_32(as_u32c(src) >> 8); goto GET32_END;
#  538|   get32_1230_B210: sample = bswap_32((as_u32c(src) >> 8) ^ 0x80); goto GET32_END;
#  539|   get32_1234_1234: sample = as_u32c(src); goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def414]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:538:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:538:27: danger: use of uninitialized value 'src' here
#  536|   get32_0123_9230: sample = (as_u32c(src) << 8) ^ 0x80000000; goto GET32_END;
#  537|   get32_1230_3210: sample = bswap_32(as_u32c(src) >> 8); goto GET32_END;
#  538|-> get32_1230_B210: sample = bswap_32((as_u32c(src) >> 8) ^ 0x80); goto GET32_END;
#  539|   get32_1234_1234: sample = as_u32c(src); goto GET32_END;
#  540|   get32_1234_9234: sample = as_u32c(src) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def415]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:539:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:539:27: danger: use of uninitialized value 'src' here
#  537|   get32_1230_3210: sample = bswap_32(as_u32c(src) >> 8); goto GET32_END;
#  538|   get32_1230_B210: sample = bswap_32((as_u32c(src) >> 8) ^ 0x80); goto GET32_END;
#  539|-> get32_1234_1234: sample = as_u32c(src); goto GET32_END;
#  540|   get32_1234_9234: sample = as_u32c(src) ^ 0x80000000; goto GET32_END;
#  541|   get32_1234_4321: sample = bswap_32(as_u32c(src)); goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def416]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:540:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:540:27: danger: use of uninitialized value 'src' here
#  538|   get32_1230_B210: sample = bswap_32((as_u32c(src) >> 8) ^ 0x80); goto GET32_END;
#  539|   get32_1234_1234: sample = as_u32c(src); goto GET32_END;
#  540|-> get32_1234_9234: sample = as_u32c(src) ^ 0x80000000; goto GET32_END;
#  541|   get32_1234_4321: sample = bswap_32(as_u32c(src)); goto GET32_END;
#  542|   get32_1234_C321: sample = bswap_32(as_u32c(src) ^ 0x80); goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def417]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:542:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:542:27: danger: use of uninitialized value 'src' here
#  540|   get32_1234_9234: sample = as_u32c(src) ^ 0x80000000; goto GET32_END;
#  541|   get32_1234_4321: sample = bswap_32(as_u32c(src)); goto GET32_END;
#  542|-> get32_1234_C321: sample = bswap_32(as_u32c(src) ^ 0x80); goto GET32_END;
#  543|   get32_0123_1230_20: sample = as_u32c(src) << 12; goto GET32_END;
#  544|   get32_0123_9230_20: sample = (as_u32c(src) << 12) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def418]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:543:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:543:30: danger: use of uninitialized value 'src' here
#  541|   get32_1234_4321: sample = bswap_32(as_u32c(src)); goto GET32_END;
#  542|   get32_1234_C321: sample = bswap_32(as_u32c(src) ^ 0x80); goto GET32_END;
#  543|-> get32_0123_1230_20: sample = as_u32c(src) << 12; goto GET32_END;
#  544|   get32_0123_9230_20: sample = (as_u32c(src) << 12) ^ 0x80000000; goto GET32_END;
#  545|   get32_1230_3210_20: sample = bswap_32(as_u32c(src)) << 12; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def419]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:544:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:544:31: danger: use of uninitialized value 'src' here
#  542|   get32_1234_C321: sample = bswap_32(as_u32c(src) ^ 0x80); goto GET32_END;
#  543|   get32_0123_1230_20: sample = as_u32c(src) << 12; goto GET32_END;
#  544|-> get32_0123_9230_20: sample = (as_u32c(src) << 12) ^ 0x80000000; goto GET32_END;
#  545|   get32_1230_3210_20: sample = bswap_32(as_u32c(src)) << 12; goto GET32_END;
#  546|   get32_1230_B210_20: sample = (bswap_32(as_u32c(src)) << 12) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def420]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:547:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:547:26: danger: use of uninitialized value 'src' here
#  545|   get32_1230_3210_20: sample = bswap_32(as_u32c(src)) << 12; goto GET32_END;
#  546|   get32_1230_B210_20: sample = (bswap_32(as_u32c(src)) << 12) ^ 0x80000000; goto GET32_END;
#  547|-> get32_123_1230: sample = _get_triple(src) << 8; goto GET32_END;
#  548|   get32_123_9230: sample = (_get_triple(src) << 8) ^ 0x80000000; goto GET32_END;
#  549|   get32_123_3210: sample = _get_triple_s(src) << 8; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def421]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:548:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:548:27: danger: use of uninitialized value 'src' here
#  546|   get32_1230_B210_20: sample = (bswap_32(as_u32c(src)) << 12) ^ 0x80000000; goto GET32_END;
#  547|   get32_123_1230: sample = _get_triple(src) << 8; goto GET32_END;
#  548|-> get32_123_9230: sample = (_get_triple(src) << 8) ^ 0x80000000; goto GET32_END;
#  549|   get32_123_3210: sample = _get_triple_s(src) << 8; goto GET32_END;
#  550|   get32_123_B210: sample = (_get_triple_s(src) << 8) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def422]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:549:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:549:26: danger: use of uninitialized value 'src' here
#  547|   get32_123_1230: sample = _get_triple(src) << 8; goto GET32_END;
#  548|   get32_123_9230: sample = (_get_triple(src) << 8) ^ 0x80000000; goto GET32_END;
#  549|-> get32_123_3210: sample = _get_triple_s(src) << 8; goto GET32_END;
#  550|   get32_123_B210: sample = (_get_triple_s(src) << 8) ^ 0x80000000; goto GET32_END;
#  551|   get32_123_1230_20: sample = _get_triple(src) << 12; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def423]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:550:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:550:27: danger: use of uninitialized value 'src' here
#  548|   get32_123_9230: sample = (_get_triple(src) << 8) ^ 0x80000000; goto GET32_END;
#  549|   get32_123_3210: sample = _get_triple_s(src) << 8; goto GET32_END;
#  550|-> get32_123_B210: sample = (_get_triple_s(src) << 8) ^ 0x80000000; goto GET32_END;
#  551|   get32_123_1230_20: sample = _get_triple(src) << 12; goto GET32_END;
#  552|   get32_123_9230_20: sample = (_get_triple(src) << 12) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def424]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:551:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:551:29: danger: use of uninitialized value 'src' here
#  549|   get32_123_3210: sample = _get_triple_s(src) << 8; goto GET32_END;
#  550|   get32_123_B210: sample = (_get_triple_s(src) << 8) ^ 0x80000000; goto GET32_END;
#  551|-> get32_123_1230_20: sample = _get_triple(src) << 12; goto GET32_END;
#  552|   get32_123_9230_20: sample = (_get_triple(src) << 12) ^ 0x80000000; goto GET32_END;
#  553|   get32_123_3210_20: sample = _get_triple_s(src) << 12; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def425]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:552:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:552:30: danger: use of uninitialized value 'src' here
#  550|   get32_123_B210: sample = (_get_triple_s(src) << 8) ^ 0x80000000; goto GET32_END;
#  551|   get32_123_1230_20: sample = _get_triple(src) << 12; goto GET32_END;
#  552|-> get32_123_9230_20: sample = (_get_triple(src) << 12) ^ 0x80000000; goto GET32_END;
#  553|   get32_123_3210_20: sample = _get_triple_s(src) << 12; goto GET32_END;
#  554|   get32_123_B210_20: sample = (_get_triple_s(src) << 12) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def426]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:553:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:553:29: danger: use of uninitialized value 'src' here
#  551|   get32_123_1230_20: sample = _get_triple(src) << 12; goto GET32_END;
#  552|   get32_123_9230_20: sample = (_get_triple(src) << 12) ^ 0x80000000; goto GET32_END;
#  553|-> get32_123_3210_20: sample = _get_triple_s(src) << 12; goto GET32_END;
#  554|   get32_123_B210_20: sample = (_get_triple_s(src) << 12) ^ 0x80000000; goto GET32_END;
#  555|   get32_123_1230_18: sample = _get_triple(src) << 14; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def427]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:554:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:554:30: danger: use of uninitialized value 'src' here
#  552|   get32_123_9230_20: sample = (_get_triple(src) << 12) ^ 0x80000000; goto GET32_END;
#  553|   get32_123_3210_20: sample = _get_triple_s(src) << 12; goto GET32_END;
#  554|-> get32_123_B210_20: sample = (_get_triple_s(src) << 12) ^ 0x80000000; goto GET32_END;
#  555|   get32_123_1230_18: sample = _get_triple(src) << 14; goto GET32_END;
#  556|   get32_123_9230_18: sample = (_get_triple(src) << 14) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def428]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:555:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:555:29: danger: use of uninitialized value 'src' here
#  553|   get32_123_3210_20: sample = _get_triple_s(src) << 12; goto GET32_END;
#  554|   get32_123_B210_20: sample = (_get_triple_s(src) << 12) ^ 0x80000000; goto GET32_END;
#  555|-> get32_123_1230_18: sample = _get_triple(src) << 14; goto GET32_END;
#  556|   get32_123_9230_18: sample = (_get_triple(src) << 14) ^ 0x80000000; goto GET32_END;
#  557|   get32_123_3210_18: sample = _get_triple_s(src) << 14; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def429]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:556:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:556:30: danger: use of uninitialized value 'src' here
#  554|   get32_123_B210_20: sample = (_get_triple_s(src) << 12) ^ 0x80000000; goto GET32_END;
#  555|   get32_123_1230_18: sample = _get_triple(src) << 14; goto GET32_END;
#  556|-> get32_123_9230_18: sample = (_get_triple(src) << 14) ^ 0x80000000; goto GET32_END;
#  557|   get32_123_3210_18: sample = _get_triple_s(src) << 14; goto GET32_END;
#  558|   get32_123_B210_18: sample = (_get_triple_s(src) << 14) ^ 0x80000000; goto GET32_END;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def430]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:557:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:557:29: danger: use of uninitialized value 'src' here
#  555|   get32_123_1230_18: sample = _get_triple(src) << 14; goto GET32_END;
#  556|   get32_123_9230_18: sample = (_get_triple(src) << 14) ^ 0x80000000; goto GET32_END;
#  557|-> get32_123_3210_18: sample = _get_triple_s(src) << 14; goto GET32_END;
#  558|   get32_123_B210_18: sample = (_get_triple_s(src) << 14) ^ 0x80000000; goto GET32_END;
#  559|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def431]
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:558:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src'
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:284:12: branch_false: following 'false' branch (when 'srcidx1 != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:19: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:290:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:304:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: following 'true' branch (when 'frames != 0')...
alsa-lib-1.2.15.1/src/pcm/pcm_route.c:312:16: branch_true: ...to here
alsa-lib-1.2.15.1/src/pcm/plugin_ops.h:558:30: danger: use of uninitialized value 'src' here
#  556|   get32_123_9230_18: sample = (_get_triple(src) << 14) ^ 0x80000000; goto GET32_END;
#  557|   get32_123_3210_18: sample = _get_triple_s(src) << 14; goto GET32_END;
#  558|-> get32_123_B210_18: sample = (_get_triple_s(src) << 14) ^ 0x80000000; goto GET32_END;
#  559|   }
#  560|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:141:1: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:110:12: enter_function: entry to 'snd_rawmidi_hw_params'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:115:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:119:9: call_function: inlined call to 'buf_reset' from 'snd_rawmidi_hw_params'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:121:13: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:129:30: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:132:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:133:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:134:28: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:136:25: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:141:1: danger: 'buf' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  139|   	}
#  140|   	return 0;
#  141|-> }
#  142|   
#  143|   static int snd_rawmidi_hw_status(snd_rawmidi_t *rmidi, snd_rawmidi_status_t * status)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:466:9: warning[-Wanalyzer-malloc-leak]: leak of 'hw'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:315:5: enter_function: entry to 'snd_rawmidi_hw_open'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:332:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:334:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:334:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:335:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:336:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:339:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:339:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:341:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:347:12: branch_false: following 'false' branch (when 'attempt != 4')...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:351:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:352:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:357:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:357:12: branch_true: following 'true' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:364:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:364:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:365:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:365:17: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:366:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:369:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:370:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:373:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:374:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:377:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:379:14: call_function: inlined call to 'snd_open_device' from 'snd_rawmidi_hw_open'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:389:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:396:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:396:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:423:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:424:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:426:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:431:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:447:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:447:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:448:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:449:20: branch_true: following 'true' branch (when 'rmidi' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:450:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:466:9: throw: if 'close' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_hw.c:466:9: danger: 'hw' leaks here; was allocated at [(31)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/30)
#  464|   
#  465|    _nomem:
#  466|-> 	close(fd);
#  467|   	free(hw);
#  468|   	if (inputp)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:332:15: warning[-Wanalyzer-malloc-leak]: leak of 'virt'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:320:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_false: following 'false' branch (when 'outputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:325:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:325:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:326:12: branch_false: following 'false' branch (when 'virt' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:330:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:332:15: throw: if 'snd_midi_event_new' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:332:15: danger: 'virt' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  330|   	virt->handle = seq_handle;
#  331|   	virt->port = port;
#  332|-> 	err = snd_midi_event_new(256, &virt->midi_event);
#  333|   	if (err < 0)
#  334|   		goto _err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:349:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:320:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:321:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:323:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:326:12: branch_false: following 'false' branch (when 'virt' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:330:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:333:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:335:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:338:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:339:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:340:20: branch_false: following 'false' branch (when 'rmidi' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:344:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:344:20: branch_true: following 'true' branch (when 'name' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:345:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:345:39: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:349:23: throw: if 'snd_seq_poll_descriptors' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:349:23: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  347|   		rmidi->stream = SND_RAWMIDI_STREAM_INPUT;
#  348|   		rmidi->mode = mode;
#  349|-> 		err = snd_seq_poll_descriptors(seq_handle, &pfd, 1, POLLIN);
#  350|   		if (err < 0)
#  351|   			goto _err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:349:23: warning[-Wanalyzer-malloc-leak]: leak of 'rmidi'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:320:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:321:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:323:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:326:12: branch_false: following 'false' branch (when 'virt' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:330:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:333:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:335:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:338:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:339:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:339:25: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:340:20: branch_false: following 'false' branch (when 'rmidi' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:344:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:344:20: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:346:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:349:23: throw: if 'snd_seq_poll_descriptors' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:349:23: danger: 'rmidi' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  347|   		rmidi->stream = SND_RAWMIDI_STREAM_INPUT;
#  348|   		rmidi->mode = mode;
#  349|-> 		err = snd_seq_poll_descriptors(seq_handle, &pfd, 1, POLLIN);
#  350|   		if (err < 0)
#  351|   			goto _err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:369:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:320:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:323:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:326:12: branch_false: following 'false' branch (when 'virt' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:330:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:333:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:335:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:338:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:358:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:358:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:359:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:360:20: branch_false: following 'false' branch (when 'rmidi' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:364:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:364:20: branch_true: following 'true' branch (when 'name' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:365:39: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:365:39: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:369:23: throw: if 'snd_seq_poll_descriptors' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:369:23: danger: '<unknown>' leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
#  367|   		rmidi->stream = SND_RAWMIDI_STREAM_OUTPUT;
#  368|   		rmidi->mode = mode;
#  369|-> 		err = snd_seq_poll_descriptors(seq_handle, &pfd, 1, POLLOUT);
#  370|   		if (err < 0)
#  371|   			goto _err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:369:23: warning[-Wanalyzer-malloc-leak]: leak of 'rmidi'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:320:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:323:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:326:12: branch_false: following 'false' branch (when 'virt' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:330:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:333:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:335:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:338:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:358:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:358:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:359:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:359:25: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:360:20: branch_false: following 'false' branch (when 'rmidi' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:364:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:364:20: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:366:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:369:23: throw: if 'snd_seq_poll_descriptors' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:369:23: danger: 'rmidi' leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  367|   		rmidi->stream = SND_RAWMIDI_STREAM_OUTPUT;
#  368|   		rmidi->mode = mode;
#  369|-> 		err = snd_seq_poll_descriptors(seq_handle, &pfd, 1, POLLOUT);
#  370|   		if (err < 0)
#  371|   			goto _err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:383:17: warning[-Wanalyzer-malloc-leak]: leak of 'rmidi'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:320:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:321:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:323:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:326:12: branch_false: following 'false' branch (when 'virt' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:330:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:333:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:335:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:338:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:339:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:339:25: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:340:20: branch_false: following 'false' branch (when 'rmidi' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:344:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:344:20: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:346:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:350:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:351:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:382:12: branch_true: following 'true' branch (when 'seq_handle' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:383:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:383:17: throw: if 'snd_seq_close' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:383:17: danger: 'rmidi' leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
#  381|    _err:
#  382|   	if (seq_handle)
#  383|-> 		snd_seq_close(seq_handle);
#  384|   	if (virt) {
#  385|   		if (virt->midi_event)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:386:25: warning[-Wanalyzer-malloc-leak]: leak of 'rmidi'
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:320:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:321:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:322:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:323:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:326:12: branch_false: following 'false' branch (when 'virt' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:330:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:333:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:335:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:338:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:339:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:339:25: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:340:20: branch_false: following 'false' branch (when 'rmidi' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:344:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:344:20: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:346:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:350:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:351:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:382:12: branch_false: following 'false' branch (when 'seq_handle' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:384:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:384:12: branch_true: following 'true' branch (when 'virt' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:385:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:385:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:386:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:386:25: throw: if 'snd_midi_event_free' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/rawmidi_virt.c:386:25: danger: 'rmidi' leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  384|   	if (virt) {
#  385|   		if (virt->midi_event)
#  386|-> 			snd_midi_event_free(virt->midi_event);
#  387|   		free(virt);
#  388|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: warning[-Wanalyzer-malloc-leak]: leak of 'input'
alsa-lib-1.2.15.1/src/rawmidi/ump.c:64:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:65:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:66:12: branch_false: following 'false' branch (when 'outputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:68:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:68:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:72:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:72:12: branch_true: following 'true' branch (when 'inputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:73:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:73:25: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:74:20: branch_false: following 'false' branch (when 'input' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:76:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:78:12: branch_false: following 'false' branch (when 'outputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:78:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: branch_true: following 'true' branch (when 'input' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: throw: if 'snd_rawmidi_open' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: danger: 'input' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   82|   	}
#   83|   
#   84|-> 	err = snd_rawmidi_open(input ? &input->rawmidi : NULL,
#   85|   			       output ? &output->rawmidi : NULL,
#   86|   			       name, mode | _SND_RAWMIDI_OPEN_UMP);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: warning[-Wanalyzer-malloc-leak]: leak of 'output'
alsa-lib-1.2.15.1/src/rawmidi/ump.c:64:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:66:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:66:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:67:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:68:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:72:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:72:12: branch_false: following 'false' branch (when 'inputp' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:78:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:78:12: branch_true: following 'true' branch (when 'outputp' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:79:26: branch_true: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:79:26: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:80:20: branch_false: following 'false' branch (when 'output' is non-NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:80:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: branch_false: following 'false' branch (when 'input' is NULL)...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: throw: if 'snd_rawmidi_open' throws an exception...
alsa-lib-1.2.15.1/src/rawmidi/ump.c:84:15: danger: 'output' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#   82|   	}
#   83|   
#   84|-> 	err = snd_rawmidi_open(input ? &input->rawmidi : NULL,
#   85|   			       output ? &output->rawmidi : NULL,
#   86|   			       name, mode | _SND_RAWMIDI_OPEN_UMP);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def443]
alsa-lib-1.2.15.1/src/seq/seq.c:994:23: warning[-Wanalyzer-jump-through-null]: jump through null pointer
alsa-lib-1.2.15.1/src/seq/seq.c:915:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq.c:922:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq.c:923:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq.c:927:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq.c:928:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq.c:932:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq.c:933:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq.c:937:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq.c:993:12: branch_true: following 'true' branch (when 'err == 0')...
alsa-lib-1.2.15.1/src/seq/seq.c:994:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq.c:994:23: danger: jump through null pointer here
#  992|   		snd_config_delete(type_conf);
#  993|   	if (! err) {
#  994|-> 		err = open_func(seqp, name, seq_root, seq_conf, streams, mode);
#  995|   		if (err < 0)
#  996|   			snd_dlclose(h);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:502:5: enter_function: entry to 'snd_seq_hw_open'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_true: following 'true' branch (when 'name' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:593:29: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:593:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:605:18: call_function: calling 'snd_seq_hw_client_id' from 'snd_seq_hw_open'
#   78|   	int client;
#   79|   	if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) {
#   80|-> 		snd_errornum(SEQUENCER, "SNDRV_SEQ_IOCTL_CLIENT_ID failed");
#   81|   		return -errno;
#   82|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of 'hw'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:502:5: enter_function: entry to 'snd_seq_hw_open'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:559:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:594:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:605:18: call_function: calling 'snd_seq_hw_client_id' from 'snd_seq_hw_open'
#   78|   	int client;
#   79|   	if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) {
#   80|-> 		snd_errornum(SEQUENCER, "SNDRV_SEQ_IOCTL_CLIENT_ID failed");
#   81|   		return -errno;
#   82|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:80:17: warning[-Wanalyzer-malloc-leak]: leak of 'seq'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:502:5: enter_function: entry to 'snd_seq_hw_open'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:594:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:605:18: call_function: calling 'snd_seq_hw_client_id' from 'snd_seq_hw_open'
#   78|   	int client;
#   79|   	if (ioctl(hw->fd, SNDRV_SEQ_IOCTL_CLIENT_ID, &client) < 0) {
#   80|-> 		snd_errornum(SEQUENCER, "SNDRV_SEQ_IOCTL_CLIENT_ID failed");
#   81|   		return -errno;
#   82|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_true: following 'true' branch (when 'name' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:593:29: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:593:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:606:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: throw: if 'snd_seq_close' throws an exception...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: danger: '<unknown>' leaks here; was allocated at [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
#  605|   	client = snd_seq_hw_client_id(seq);
#  606|   	if (client < 0) {
#  607|-> 		snd_seq_close(seq);
#  608|   		return client;
#  609|   	} else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: warning[-Wanalyzer-malloc-leak]: leak of 'hw'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:559:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:594:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:606:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: throw: if 'snd_seq_close' throws an exception...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: danger: 'hw' leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  605|   	client = snd_seq_hw_client_id(seq);
#  606|   	if (client < 0) {
#  607|-> 		snd_seq_close(seq);
#  608|   		return client;
#  609|   	} else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: warning[-Wanalyzer-malloc-leak]: leak of 'seq'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:594:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:606:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: throw: if 'snd_seq_close' throws an exception...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:607:17: danger: 'seq' leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
#  605|   	client = snd_seq_hw_client_id(seq);
#  606|   	if (client < 0) {
#  607|-> 		snd_seq_close(seq);
#  608|   		return client;
#  609|   	} else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_true: following 'true' branch (when 'name' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:593:29: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:593:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:606:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:610:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:624:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: danger: '<unknown>' leaks here; was allocated at [(19)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/18)
#  623|   		run_mode.cpu_mode = sizeof(long);
#  624|   		if (ioctl(fd, SNDRV_SEQ_IOCTL_RUNNING_MODE, &run_mode))
#  625|-> 			snd_warn(SEQUENCER, "running mode cannot be set");
#  626|   	}
#  627|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: warning[-Wanalyzer-malloc-leak]: leak of 'hw'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:559:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:594:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:606:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:610:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:624:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: danger: 'hw' leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  623|   		run_mode.cpu_mode = sizeof(long);
#  624|   		if (ioctl(fd, SNDRV_SEQ_IOCTL_RUNNING_MODE, &run_mode))
#  625|-> 			snd_warn(SEQUENCER, "running mode cannot be set");
#  626|   	}
#  627|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: warning[-Wanalyzer-malloc-leak]: leak of 'seq'
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:511:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:539:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:543:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:549:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:560:12: branch_false: following 'false' branch (when 'hw' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:565:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:566:12: branch_false: following 'false' branch (when 'seq' is non-NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:571:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:573:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:582:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:592:12: branch_false: following 'false' branch (when 'name' is NULL)...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:594:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:606:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:610:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:624:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/seq/seq_hw.c:625:25: danger: 'seq' leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
#  623|   		run_mode.cpu_mode = sizeof(long);
#  624|   		if (ioctl(fd, SNDRV_SEQ_IOCTL_RUNNING_MODE, &run_mode))
#  625|-> 			snd_warn(SEQUENCER, "running mode cannot be set");
#  626|   	}
#  627|   #endif

Error: COMPILER_WARNING (CWE-704): [#def453]
alsa-lib-1.2.15.1/src/seq/seqmid.c: scope_hint: In function 'snd_seq_parse_address'
alsa-lib-1.2.15.1/src/seq/seqmid.c:449:24: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  449 |                 if ((p = strpbrk(arg, ":.")) != NULL) {
#      |                        ^
#  447|   		}
#  448|   	} else {
#  449|-> 		if ((p = strpbrk(arg, ":.")) != NULL) {
#  450|   			if ((port = atoi(p + 1)) < 0)
#  451|   				return -EINVAL;

Error: COMPILER_WARNING (CWE-704): [#def454]
alsa-lib-1.2.15.1/src/seq/seqmid.c:449:24: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  447|   		}
#  448|   	} else {
#  449|-> 		if ((p = strpbrk(arg, ":.")) != NULL) {
#  450|   			if ((port = atoi(p + 1)) < 0)
#  451|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-457): [#def455]
alsa-lib-1.2.15.1/src/seq/seqmid.c:569: error[legacyUninitvar]: Uninitialized variable: *&pinfo
#  567|   	}
#  568|   
#  569|-> 	snd_seq_port_info_alloca(&pinfo);
#  570|   
#  571|   	snd_seq_port_info_set_port(pinfo, 0);

Error: CPPCHECK_WARNING (CWE-457): [#def456]
alsa-lib-1.2.15.1/src/seq/seqmid.c:631: error[legacyUninitvar]: Uninitialized variable: *&pinfo
#  629|   	snd_ump_block_info_t *bp;
#  630|   
#  631|-> 	snd_seq_port_info_alloca(&pinfo);
#  632|   
#  633|   	for (i = 0; i < seq->num_ump_groups; i++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def457]
alsa-lib-1.2.15.1/src/timer/timer.c:169:23: warning[-Wanalyzer-jump-through-null]: jump through null pointer
alsa-lib-1.2.15.1/src/timer/timer.c:90:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/timer/timer.c:97:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/timer/timer.c:98:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/timer/timer.c:102:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/timer/timer.c:103:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/timer/timer.c:107:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/timer/timer.c:108:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/timer/timer.c:112:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/timer/timer.c:168:12: branch_true: following 'true' branch (when 'err == 0')...
alsa-lib-1.2.15.1/src/timer/timer.c:169:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/timer/timer.c:169:23: danger: jump through null pointer here
#  167|   		snd_config_delete(type_conf);
#  168|   	if (! err) {
#  169|-> 		err = open_func(timer, name, timer_root, timer_conf, mode);
#  170|   		if (err < 0)
#  171|   			snd_dlclose(h);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def458]
alsa-lib-1.2.15.1/src/topology/data.c:191:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  189|   	}
#  190|   
#  191|-> 	fseek(fp, 0L, SEEK_END);
#  192|   	size = ftell(fp);
#  193|   	fseek(fp, 0L, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
alsa-lib-1.2.15.1/src/topology/data.c:191:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  189|   	}
#  190|   
#  191|-> 	fseek(fp, 0L, SEEK_END);
#  192|   	size = ftell(fp);
#  193|   	fseek(fp, 0L, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def460]
alsa-lib-1.2.15.1/src/topology/data.c:192:16: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  190|   
#  191|   	fseek(fp, 0L, SEEK_END);
#  192|-> 	size = ftell(fp);
#  193|   	fseek(fp, 0L, SEEK_SET);
#  194|   	if (size <= 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
alsa-lib-1.2.15.1/src/topology/data.c:192:16: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  190|   
#  191|   	fseek(fp, 0L, SEEK_END);
#  192|-> 	size = ftell(fp);
#  193|   	fseek(fp, 0L, SEEK_SET);
#  194|   	if (size <= 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def462]
alsa-lib-1.2.15.1/src/topology/data.c:193:9: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  191|   	fseek(fp, 0L, SEEK_END);
#  192|   	size = ftell(fp);
#  193|-> 	fseek(fp, 0L, SEEK_SET);
#  194|   	if (size <= 0) {
#  195|   		snd_error(TOPOLOGY, "invalid data file size %zu", size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
alsa-lib-1.2.15.1/src/topology/data.c:193:9: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  191|   	fseek(fp, 0L, SEEK_END);
#  192|   	size = ftell(fp);
#  193|-> 	fseek(fp, 0L, SEEK_SET);
#  194|   	if (size <= 0) {
#  195|   		snd_error(TOPOLOGY, "invalid data file size %zu", size);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def464]
alsa-lib-1.2.15.1/src/topology/data.c:195:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  193|   	fseek(fp, 0L, SEEK_SET);
#  194|   	if (size <= 0) {
#  195|-> 		snd_error(TOPOLOGY, "invalid data file size %zu", size);
#  196|   		ret = -EINVAL;
#  197|   		goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
alsa-lib-1.2.15.1/src/topology/data.c:195:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  193|   	fseek(fp, 0L, SEEK_SET);
#  194|   	if (size <= 0) {
#  195|-> 		snd_error(TOPOLOGY, "invalid data file size %zu", size);
#  196|   		ret = -EINVAL;
#  197|   		goto err;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def466]
alsa-lib-1.2.15.1/src/topology/data.c:200:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  198|   	}
#  199|   	if (size > TPLG_MAX_PRIV_SIZE) {
#  200|-> 		snd_error(TOPOLOGY, "data file too big %zu", size);
#  201|   		ret = -EINVAL;
#  202|   		goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
alsa-lib-1.2.15.1/src/topology/data.c:200:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(&filename, "r")'
alsa-lib-1.2.15.1/src/topology/data.c:1351:5: enter_function: entry to 'tplg_parse_data'
alsa-lib-1.2.15.1/src/topology/data.c:1361:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1364:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1366:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1371:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1372:31: call_function: calling 'tplg_parse_data_file' from 'tplg_parse_data'
#  198|   	}
#  199|   	if (size > TPLG_MAX_PRIV_SIZE) {
#  200|-> 		snd_error(TOPOLOGY, "data file too big %zu", size);
#  201|   		ret = -EINVAL;
#  202|   		goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
alsa-lib-1.2.15.1/src/topology/data.c:363:25: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
#  361|   			|| (errno != 0 && val == 0)
#  362|   			|| (val > UCHAR_MAX)) {
#  363|-> 			snd_error(TOPOLOGY, "invalid value for uuid");
#  364|   			ret = -EINVAL;
#  365|   			goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
alsa-lib-1.2.15.1/src/topology/data.c:387:25: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
#  385|   			|| (errno != 0 && val == 0)
#  386|   			|| (val > UCHAR_MAX)) {
#  387|-> 			snd_error(TOPOLOGY, "invalid value for uuid");
#  388|   			ret = -EINVAL;
#  389|   			goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
alsa-lib-1.2.15.1/src/topology/data.c:402:17: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
#  400|   
#  401|   	if (values < 16) {
#  402|-> 		snd_error(TOPOLOGY, "less than 16 integers for uuid");
#  403|   		ret = -EINVAL;
#  404|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
alsa-lib-1.2.15.1/src/topology/data.c:820:9: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
#  818|   	set->type = type;
#  819|   
#  820|-> 	snd_config_for_each(i, next, cfg) {
#  821|   
#  822|   		n = snd_config_iterator_entry(i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
alsa-lib-1.2.15.1/src/topology/data.c:822:21: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
#  820|   	snd_config_for_each(i, next, cfg) {
#  821|   
#  822|-> 		n = snd_config_iterator_entry(i);
#  823|   
#  824|   		/* get id */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
alsa-lib-1.2.15.1/src/topology/data.c:825:21: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
#  823|   
#  824|   		/* get id */
#  825|-> 		if (snd_config_get_id(n, &id) < 0)
#  826|   			continue;
#  827|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
alsa-lib-1.2.15.1/src/topology/data.c:829:17: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
#  827|   
#  828|   		tuple = &set->tuple[set->num_tuples];
#  829|-> 		snd_strlcpy(tuple->token, id,
#  830|   				SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
#  831|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
alsa-lib-1.2.15.1/src/topology/data.c:892:1: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
#  890|   	free(set);
#  891|   	return -EINVAL;
#  892|-> }
#  893|   
#  894|   /* save tuple set */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def476]
alsa-lib-1.2.15.1/src/topology/data.c:1003:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'id'
alsa-lib-1.2.15.1/src/topology/data.c:1119:5: enter_function: entry to 'tplg_parse_tuples'
alsa-lib-1.2.15.1/src/topology/data.c:1130:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1135:18: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1136:12: branch_false: following 'false' branch (when 'tuples' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1138:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1140:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1142:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1146:20: branch_false: following 'false' branch (when the strings are non-equal)...
alsa-lib-1.2.15.1/src/topology/data.c:1153:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1154:31: call_function: calling 'parse_tuple_sets' from 'tplg_parse_tuples'
# 1001|   		n = snd_config_iterator_entry(i);
# 1002|   		if (snd_config_get_type(n) != SND_CONFIG_TYPE_COMPOUND) {
# 1003|-> 			snd_error(TOPOLOGY, "compound type expected for %s, is %d",
# 1004|   					    id, snd_config_get_type(n));
# 1005|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
alsa-lib-1.2.15.1/src/topology/data.c:1637:16: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1716:12: enter_function: entry to 'tplg_decode_tuple_set'
alsa-lib-1.2.15.1/src/topology/data.c:1729:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1734:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1747:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1748:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1756:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1761:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1761:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/data.c:1762:12: branch_false: following 'false' branch (when 'set' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1765:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1770:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1772:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1774:31: call_function: calling 'tplg_add_token' from 'tplg_decode_tuple_set'
# 1635|   	size_t size;
# 1636|   
# 1637|-> 	elem = tplg_elem_lookup(&tplg->token_list, parent->id,
# 1638|   				SND_TPLG_TYPE_TOKEN, parent->index);
# 1639|   	if (elem == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
alsa-lib-1.2.15.1/src/topology/data.c:1640:24: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1716:12: enter_function: entry to 'tplg_decode_tuple_set'
alsa-lib-1.2.15.1/src/topology/data.c:1729:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1734:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1747:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1748:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1756:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1761:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1761:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/data.c:1762:12: branch_false: following 'false' branch (when 'set' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1765:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1770:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1772:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1774:31: call_function: calling 'tplg_add_token' from 'tplg_decode_tuple_set'
# 1638|   				SND_TPLG_TYPE_TOKEN, parent->index);
# 1639|   	if (elem == NULL) {
# 1640|-> 		elem = tplg_elem_new_common(tplg, NULL, parent->id,
# 1641|   					    SND_TPLG_TYPE_TOKEN);
# 1642|   		if (!elem)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
alsa-lib-1.2.15.1/src/topology/data.c:1671:9: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1716:12: enter_function: entry to 'tplg_decode_tuple_set'
alsa-lib-1.2.15.1/src/topology/data.c:1729:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1734:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1747:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1748:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1756:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1761:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1761:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/data.c:1762:12: branch_false: following 'false' branch (when 'set' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1765:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1770:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1772:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1774:31: call_function: calling 'tplg_add_token' from 'tplg_decode_tuple_set'
# 1669|   	t->value = token;
# 1670|   found:
# 1671|-> 	snd_strlcpy(str_ref, t->id, SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
# 1672|   	return 0;
# 1673|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
alsa-lib-1.2.15.1/src/topology/data.c:1768:9: warning[-Wanalyzer-malloc-leak]: leak of 'set'
alsa-lib-1.2.15.1/src/topology/data.c:1716:12: enter_function: entry to 'tplg_decode_tuple_set'
alsa-lib-1.2.15.1/src/topology/data.c:1729:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1734:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1747:13: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1748:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1756:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1756:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1761:40: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1761:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/data.c:1762:12: branch_false: following 'false' branch (when 'set' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/data.c:1765:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1768:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/data.c:1768:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/data.c:1768:9: call_function: inlined call to 'get_tuple_type_name' from 'tplg_decode_tuple_set'
alsa-lib-1.2.15.1/src/topology/data.c:1768:9: throw: if 'tplg_log_' throws an exception...
alsa-lib-1.2.15.1/src/topology/data.c:1768:9: danger: 'set' leaks here; was allocated at [(10)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/9)
# 1766|   	set->num_tuples = va->num_elems;
# 1767|   
# 1768|-> 	tplg_log(tplg, 'A', pos, "tuple set: type %d (%s) tuples %d size %d", set->type,
# 1769|   		 get_tuple_type_name(set->type), set->num_tuples, va->size);
# 1770|   	for (j = 0; j < set->num_tuples; j++) {

Error: COMPILER_WARNING: [#def481]
alsa-lib-1.2.15.1/src/topology/data.c: scope_hint: In function 'tplg_add_data'
alsa-lib-1.2.15.1/src/topology/data.c:1896:18: warning[-Wunused-but-set-variable=]: variable 'num_tuples' set but not used
# 1896 |         int err, num_tuples = 0, block = 0;
#      |                  ^~~~~~~~~~
# 1894|   	char suffix[16];
# 1895|   	size_t pos = 0, off;
# 1896|-> 	int err, num_tuples = 0, block = 0;
# 1897|   
# 1898|   	if (size == 0)

Error: CPPCHECK_WARNING (CWE-457): [#def482]
alsa-lib-1.2.15.1/src/topology/data.c:1915: error[uninitvar]: Uninitialized variable: id
# 1913|   			if (err < 0)
# 1914|   				return err;
# 1915|-> 			err = tplg_ref_add(elem2, SND_TPLG_TYPE_TUPLE, id);
# 1916|   			if (err < 0)
# 1917|   				return err;

Error: CPPCHECK_WARNING (CWE-401): [#def483]
alsa-lib-1.2.15.1/src/topology/elem.c:257: error[memleak]: Memory leak: ref
#  255|   
#  256|   	list_add_tail(&ref->list, &elem->ref_list);
#  257|-> 	return 0;
#  258|   }
#  259|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
alsa-lib-1.2.15.1/src/topology/elem.c:271:9: warning[-Wanalyzer-malloc-leak]: leak of 'ref'
alsa-lib-1.2.15.1/src/topology/elem.c:265:15: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/elem.c:266:12: branch_false: following 'false' branch (when 'ref' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/elem.c:269:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/elem.c:271:9: throw: if 'snd_strlcpy' throws an exception...
alsa-lib-1.2.15.1/src/topology/elem.c:271:9: danger: 'ref' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  269|   	ref->type = elem_ref->type;
#  270|   	ref->elem = elem_ref;
#  271|-> 	snd_strlcpy(ref->id, elem_ref->id, SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
#  272|   
#  273|   	list_add_tail(&ref->list, &elem->ref_list);

Error: CPPCHECK_WARNING (CWE-401): [#def485]
alsa-lib-1.2.15.1/src/topology/elem.c:274: error[memleak]: Memory leak: ref
#  272|   
#  273|   	list_add_tail(&ref->list, &elem->ref_list);
#  274|-> 	return 0;
#  275|   }
#  276|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
alsa-lib-1.2.15.1/src/topology/elem.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of 'tplg_elem_new()'
alsa-lib-1.2.15.1/src/topology/elem.c:402:19: enter_function: entry to 'tplg_elem_new_common'
alsa-lib-1.2.15.1/src/topology/elem.c:417:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/elem.c:420:16: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/elem.c:420:16: call_function: calling 'tplg_elem_new' from 'tplg_elem_new_common'
alsa-lib-1.2.15.1/src/topology/elem.c:420:16: return_function: returning to 'tplg_elem_new_common' from 'tplg_elem_new'
alsa-lib-1.2.15.1/src/topology/elem.c:421:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/elem.c:425:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/elem.c:425:12: branch_true: following 'true' branch (when 'cfg' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/elem.c:426:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/elem.c:426:21: throw: if 'snd_config_get_id' throws an exception...
alsa-lib-1.2.15.1/src/topology/elem.c:297:9: danger: 'tplg_elem_new()' leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  295|   		return NULL;
#  296|   
#  297|-> 	INIT_LIST_HEAD(&elem->ref_list);
#  298|   	return elem;
#  299|   }

Error: CPPCHECK_WARNING (CWE-401): [#def487]
alsa-lib-1.2.15.1/src/topology/elem.c:502: error[memleak]: Memory leak: a
#  500|   		return NULL;
#  501|   	list_add_tail(&a->list, heap);
#  502|-> 	return a->data;
#  503|   }
#  504|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def488]
alsa-lib-1.2.15.1/src/topology/parser.c:310:15: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(infile, "r")'
alsa-lib-1.2.15.1/src/topology/parser.c:304:14: acquire_resource: opened here
alsa-lib-1.2.15.1/src/topology/parser.c:305:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/parser.c:310:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/parser.c:310:15: throw: if 'snd_input_stdio_attach' throws an exception...
alsa-lib-1.2.15.1/src/topology/parser.c:310:15: danger: 'fopen(infile, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  308|   	}
#  309|   
#  310|-> 	err = snd_input_stdio_attach(&in, fp, 1);
#  311|   	if (err < 0) {
#  312|   		fclose(fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
alsa-lib-1.2.15.1/src/topology/parser.c:310:15: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(infile, "r")'
alsa-lib-1.2.15.1/src/topology/parser.c:304:14: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/parser.c:305:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/parser.c:310:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/parser.c:310:15: throw: if 'snd_input_stdio_attach' throws an exception...
alsa-lib-1.2.15.1/src/topology/parser.c:310:15: danger: 'fopen(infile, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  308|   	}
#  309|   
#  310|-> 	err = snd_input_stdio_attach(&in, fp, 1);
#  311|   	if (err < 0) {
#  312|   		fclose(fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
alsa-lib-1.2.15.1/src/topology/pcm.c:323:26: warning[-Wanalyzer-malloc-leak]: leak of 's'
alsa-lib-1.2.15.1/src/topology/pcm.c:399:5: enter_function: entry to 'tplg_parse_stream_caps'
alsa-lib-1.2.15.1/src/topology/pcm.c:412:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:415:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:421:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:422:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:433:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:436:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:436:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/pcm.c:437:28: branch_false: following 'false' branch (when 's' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/pcm.c:440:31: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:440:31: call_function: calling 'split_format' from 'tplg_parse_stream_caps'
#  321|   	s = strtok(str, ",");
#  322|   	while ((s != NULL) && (i < SND_SOC_TPLG_MAX_FORMATS)) {
#  323|-> 		format = snd_pcm_format_value(s);
#  324|   		if (format == SND_PCM_FORMAT_UNKNOWN) {
#  325|   			snd_error(TOPOLOGY, "unsupported stream format %s", s);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
alsa-lib-1.2.15.1/src/topology/pcm.c:325:25: warning[-Wanalyzer-malloc-leak]: leak of 's'
alsa-lib-1.2.15.1/src/topology/pcm.c:399:5: enter_function: entry to 'tplg_parse_stream_caps'
alsa-lib-1.2.15.1/src/topology/pcm.c:412:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:415:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:421:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:422:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:433:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:436:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:436:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/pcm.c:437:28: branch_false: following 'false' branch (when 's' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/pcm.c:440:31: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:440:31: call_function: calling 'split_format' from 'tplg_parse_stream_caps'
#  323|   		format = snd_pcm_format_value(s);
#  324|   		if (format == SND_PCM_FORMAT_UNKNOWN) {
#  325|-> 			snd_error(TOPOLOGY, "unsupported stream format %s", s);
#  326|   			return -EINVAL;
#  327|   		}

Error: COMPILER_WARNING: [#def492]
alsa-lib-1.2.15.1/src/topology/pcm.c: scope_hint: In function 'split_rate'
alsa-lib-1.2.15.1/src/topology/pcm.c:361:13: warning[-Wunused-but-set-variable=]: variable 'i' set but not used
#  361 |         int i = 0;
#      |             ^
#  359|   	char *s = NULL;
#  360|   	snd_pcm_rates_t rate;
#  361|-> 	int i = 0;
#  362|   
#  363|   	s = strtok(str, ",");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
alsa-lib-1.2.15.1/src/topology/pcm.c:368:25: warning[-Wanalyzer-malloc-leak]: leak of 's'
alsa-lib-1.2.15.1/src/topology/pcm.c:399:5: enter_function: entry to 'tplg_parse_stream_caps'
alsa-lib-1.2.15.1/src/topology/pcm.c:412:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:415:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:421:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:422:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:451:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:454:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:454:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/topology/pcm.c:455:28: branch_false: following 'false' branch (when 's' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/pcm.c:458:31: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:458:31: call_function: calling 'split_rate' from 'tplg_parse_stream_caps'
#  366|   
#  367|   		if (rate == SND_PCM_RATE_UNKNOWN) {
#  368|-> 			snd_error(TOPOLOGY, "unsupported stream rate %s", s);
#  369|   			return -EINVAL;
#  370|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def494]
alsa-lib-1.2.15.1/src/topology/pcm.c:2260:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
alsa-lib-1.2.15.1/src/topology/pcm.c:2165:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2165:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2174:12: branch_false: following 'false' branch (when 'size > 1655')...
alsa-lib-1.2.15.1/src/topology/pcm.c:2178:30: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2178:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2184:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2184:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2188:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2188:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2192:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2192:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2197:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2197:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2197:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2204:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2204:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2206:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2206:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2212:21: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2230:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2231:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2233:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2233:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2239:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2255:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2255:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2259:29: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2260:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2260:25: release_memory: using NULL here
alsa-lib-1.2.15.1/src/topology/pcm.c:2260:25: danger: dereference of NULL 'hws[i].tx_chanmap + (long unsigned int)j * 4'
# 2258|   		}
# 2259|   		for (j = 0; j < hw->tx_channels; j++)
# 2260|-> 			hw->tx_chanmap[j] = link->hw_config[i].tx_chanmap[j];
# 2261|   		hw->rx_channels = link->hw_config[i].rx_channels;
# 2262|   		if (hw->rx_channels > SND_SOC_TPLG_MAX_CHAN) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def495]
alsa-lib-1.2.15.1/src/topology/pcm.c:2267:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
alsa-lib-1.2.15.1/src/topology/pcm.c:2165:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2165:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2174:12: branch_false: following 'false' branch (when 'size > 1655')...
alsa-lib-1.2.15.1/src/topology/pcm.c:2178:30: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2178:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2184:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2184:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2188:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2188:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2192:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2192:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2197:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2197:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2197:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2204:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2204:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2206:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2206:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2212:21: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2230:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2231:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2233:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2233:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2239:26: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2255:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2255:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2259:29: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2261:35: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2262:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2262:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2266:29: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/pcm.c:2267:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/pcm.c:2267:25: release_memory: using NULL here
alsa-lib-1.2.15.1/src/topology/pcm.c:2267:25: danger: dereference of NULL 'hws[i].rx_chanmap + (long unsigned int)j * 4'
# 2265|   		}
# 2266|   		for (j = 0; j < hw->rx_channels; j++)
# 2267|-> 			hw->rx_chanmap[j] = link->hw_config[i].rx_chanmap[j];
# 2268|   	}
# 2269|   	lt.hw_config = hws;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def496]
alsa-lib-1.2.15.1/src/topology/save.c:96:9: warning[-Wanalyzer-null-argument]: use of NULL 'buf.dst' where non-null expected
alsa-lib-1.2.15.1/src/topology/save.c:564:5: enter_function: entry to 'snd_tplg_save'
alsa-lib-1.2.15.1/src/topology/save.c:572:9: branch_true: following 'true' branch (when 'tplg' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/save.c:573:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:573:9: branch_true: following 'true' branch (when 'dst' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/save.c:574:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:574:9: release_memory: '*dst' is NULL
alsa-lib-1.2.15.1/src/topology/save.c:576:9: call_function: calling 'tplg_buf_init' from 'snd_tplg_save'
alsa-lib-1.2.15.1/src/topology/save.c:576:9: return_function: returning to 'snd_tplg_save' from 'tplg_buf_init'
alsa-lib-1.2.15.1/src/topology/save.c:578:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/save.c:579:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:580:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/topology/save.c:582:22: branch_false: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:582:35: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/save.c:583:31: call_function: calling 'tplg_save_printf' from 'snd_tplg_save'
#   94|   	if (pl > 0)
#   95|   		strcpy(s + l, pfx);
#   96|-> 	strcpy(s + l + pl, dst->printf_buf);
#   97|   	dst->dst = s;
#   98|   	dst->dst_len = t - 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def497]
alsa-lib-1.2.15.1/src/topology/save.c:553:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'a'
alsa-lib-1.2.15.1/src/topology/save.c:564:5: enter_function: entry to 'snd_tplg_save'
alsa-lib-1.2.15.1/src/topology/save.c:572:9: branch_true: following 'true' branch (when 'tplg' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/save.c:573:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:573:9: branch_true: following 'true' branch (when 'dst' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/save.c:574:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:578:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/save.c:579:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:579:23: call_function: calling 'tplg_index_groups' from 'snd_tplg_save'
#  551|   				a = b;
#  552|   			}
#  553|-> 			a[count++] = elem->index;
#  554|   		}
#  555|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def498]
alsa-lib-1.2.15.1/src/topology/save.c:556:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'a'
alsa-lib-1.2.15.1/src/topology/save.c:564:5: enter_function: entry to 'snd_tplg_save'
alsa-lib-1.2.15.1/src/topology/save.c:572:9: branch_true: following 'true' branch (when 'tplg' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/save.c:573:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:573:9: branch_true: following 'true' branch (when 'dst' is non-NULL)...
alsa-lib-1.2.15.1/src/topology/save.c:574:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:578:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/topology/save.c:579:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/topology/save.c:579:23: call_function: calling 'tplg_index_groups' from 'snd_tplg_save'
#  554|   		}
#  555|   	}
#  556|-> 	a[count] = -1;
#  557|   
#  558|   	qsort(a, count, sizeof(a[0]), tplg_index_compar);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
alsa-lib-1.2.15.1/src/ucm/main.c:566:13: warning[-Wanalyzer-malloc-leak]: leak of 's'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  564|   	}
#  565|   
#  566|-> 	e = uc_mgr_sysfs_root();
#  567|   	if (e == NULL) {
#  568|   		free(s);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def500]
alsa-lib-1.2.15.1/src/ucm/main.c:581:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&path, 524289)'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  579|   		return -EINVAL;
#  580|   	}
#  581|-> 	wlen = write(fd, value, len);
#  582|   	myerrno = errno;
#  583|   	close(fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def501]
alsa-lib-1.2.15.1/src/ucm/main.c:583:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&path, 524289)'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  581|   	wlen = write(fd, value, len);
#  582|   	myerrno = errno;
#  583|-> 	close(fd);
#  584|   
#  585|   	if (ignore_error)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
alsa-lib-1.2.15.1/src/ucm/main.c:621:23: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  619|   			root++;
#  620|   		}
#  621|-> 		err = snd_config_search(config, root, &config);
#  622|   		if (err < 0) {
#  623|   			snd_error(UCM, "Unable to find subtree '%s'", root);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
alsa-lib-1.2.15.1/src/ucm/main.c:623:25: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  621|   		err = snd_config_search(config, root, &config);
#  622|   		if (err < 0) {
#  623|-> 			snd_error(UCM, "Unable to find subtree '%s'", root);
#  624|   			goto _err;
#  625|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
alsa-lib-1.2.15.1/src/ucm/main.c:628:15: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  626|   	}
#  627|   
#  628|-> 	err = snd_output_stdio_open(&out, file, "w+");
#  629|   	if (err < 0) {
#  630|   		snd_error(UCM, "unable to open file '%s': %s", file, snd_strerror(err));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
alsa-lib-1.2.15.1/src/ucm/main.c:630:17: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  628|   	err = snd_output_stdio_open(&out, file, "w+");
#  629|   	if (err < 0) {
#  630|-> 		snd_error(UCM, "unable to open file '%s': %s", file, snd_strerror(err));
#  631|   		goto _err;
#  632|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
alsa-lib-1.2.15.1/src/ucm/main.c:633:24: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  631|   		goto _err;
#  632|   	}
#  633|-> 	if (!config || snd_config_is_empty(config)) {
#  634|   		snd_output_close(out);
#  635|   		goto _err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
alsa-lib-1.2.15.1/src/ucm/main.c:634:17: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  632|   	}
#  633|   	if (!config || snd_config_is_empty(config)) {
#  634|-> 		snd_output_close(out);
#  635|   		goto _err;
#  636|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
alsa-lib-1.2.15.1/src/ucm/main.c:641:23: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  639|   		err = _snd_config_save_node_value(config, out, 0);
#  640|   	} else {
#  641|-> 		err = snd_config_save(config, out);
#  642|   	}
#  643|   	snd_output_close(out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
alsa-lib-1.2.15.1/src/ucm/main.c:643:9: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  641|   		err = snd_config_save(config, out);
#  642|   	}
#  643|-> 	snd_output_close(out);
#  644|   	if (err < 0) {
#  645|   		snd_error(UCM, "unable to save configuration: %s", snd_strerror(err));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
alsa-lib-1.2.15.1/src/ucm/main.c:645:17: warning[-Wanalyzer-malloc-leak]: leak of 'file'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  643|   	snd_output_close(out);
#  644|   	if (err < 0) {
#  645|-> 		snd_error(UCM, "unable to save configuration: %s", snd_strerror(err));
#  646|   		goto _err;
#  647|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def511]
alsa-lib-1.2.15.1/src/ucm/main.c:692: error[ctunullpointer]: Null pointer dereference: verb
#  690|   	struct use_case_device *device;
#  691|   
#  692|-> 	snd_trace(UCM, "device sequence '%s/%s': %s", verb->name, name, uc_mgr_enable_str(enable));
#  693|   
#  694|   	if (verb == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
alsa-lib-1.2.15.1/src/ucm/main.c:834:39: warning[-Wanalyzer-malloc-leak]: leak of 'cdev'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  832|   			}
#  833|   			if (ctl == NULL) {
#  834|-> 				err = uc_mgr_open_ctl(uc_mgr, &ctl_list, cdev, 1);
#  835|   				if (err < 0) {
#  836|   					snd_error(UCM, "unable to open ctl device '%s'", cdev);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
alsa-lib-1.2.15.1/src/ucm/main.c:836:41: warning[-Wanalyzer-malloc-leak]: leak of 'cdev'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  834|   				err = uc_mgr_open_ctl(uc_mgr, &ctl_list, cdev, 1);
#  835|   				if (err < 0) {
#  836|-> 					snd_error(UCM, "unable to open ctl device '%s'", cdev);
#  837|   					goto __fail;
#  838|   				}

Error: CPPCHECK_WARNING (CWE-457): [#def514]
alsa-lib-1.2.15.1/src/ucm/main.c:1079: error[legacyUninitvar]: Uninitialized variable: *&id
# 1077|   		return 0;
# 1078|   
# 1079|-> 	snd_ctl_elem_id_alloca(&id);
# 1080|   	snd_ctl_elem_info_alloca(&info);
# 1081|   	snd_ctl_elem_value_alloca(&value);

Error: CPPCHECK_WARNING (CWE-457): [#def515]
alsa-lib-1.2.15.1/src/ucm/main.c:1080: error[legacyUninitvar]: Uninitialized variable: *&info
# 1078|   
# 1079|   	snd_ctl_elem_id_alloca(&id);
# 1080|-> 	snd_ctl_elem_info_alloca(&info);
# 1081|   	snd_ctl_elem_value_alloca(&value);
# 1082|   

Error: CPPCHECK_WARNING (CWE-457): [#def516]
alsa-lib-1.2.15.1/src/ucm/main.c:1081: error[legacyUninitvar]: Uninitialized variable: *&value
# 1079|   	snd_ctl_elem_id_alloca(&id);
# 1080|   	snd_ctl_elem_info_alloca(&info);
# 1081|-> 	snd_ctl_elem_value_alloca(&value);
# 1082|   
# 1083|   	snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_CARD);

Error: CPPCHECK_WARNING (CWE-457): [#def517]
alsa-lib-1.2.15.1/src/ucm/main.c:1142: error[legacyUninitvar]: Uninitialized variable: *&event
# 1140|   	int err;
# 1141|   
# 1142|-> 	snd_ctl_event_alloca(&event);
# 1143|   
# 1144|   	if (_primary_card)

Error: CPPCHECK_WARNING (CWE-476): [#def518]
alsa-lib-1.2.15.1/src/ucm/main.c:2389: error[ctunullpointer]: Null pointer dereference: identifier
# 2387|   	}
# 2388|   	pthread_mutex_lock(&uc_mgr->mutex);
# 2389|-> 	if (strcmp(identifier, "_verbs") == 0)
# 2390|   		err = get_verb_list(uc_mgr, list);
# 2391|   	else if (strcmp(identifier, "_enadevs") == 0)

Error: COMPILER_WARNING (CWE-704): [#def519]
alsa-lib-1.2.15.1/src/ucm/main.c: scope_hint: In function 'snd_use_case_get_list'
alsa-lib-1.2.15.1/src/ucm/main.c:2396:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2396 |                 str1 = strchr(identifier, '/');
#      |                      ^
# 2394|   		err = get_enabled_modifier_list(uc_mgr, list);
# 2395|   	else {
# 2396|-> 		str1 = strchr(identifier, '/');
# 2397|   		if (str1) {
# 2398|   			str = strdup(str1 + 1);

Error: COMPILER_WARNING (CWE-704): [#def520]
alsa-lib-1.2.15.1/src/ucm/main.c:2396:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2394|   		err = get_enabled_modifier_list(uc_mgr, list);
# 2395|   	else {
# 2396|-> 		str1 = strchr(identifier, '/');
# 2397|   		if (str1) {
# 2398|   			str = strdup(str1 + 1);

Error: COMPILER_WARNING (CWE-704): [#def521]
alsa-lib-1.2.15.1/src/ucm/main.c: scope_hint: In function 'snd_use_case_geti'
alsa-lib-1.2.15.1/src/ucm/main.c:2721:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2721 |                 str1 = strchr(identifier, '/');
#      |                      ^
# 2719|   		/* nothing here - prepared for fixed identifiers */
# 2720|   	} else {
# 2721|-> 		str1 = strchr(identifier, '/');
# 2722|   		if (str1) {
# 2723|   			str = strdup(str1 + 1);

Error: COMPILER_WARNING (CWE-704): [#def522]
alsa-lib-1.2.15.1/src/ucm/main.c:2721:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 2719|   		/* nothing here - prepared for fixed identifiers */
# 2720|   	} else {
# 2721|-> 		str1 = strchr(identifier, '/');
# 2722|   		if (str1) {
# 2723|   			str = strdup(str1 + 1);

Error: COMPILER_WARNING (CWE-704): [#def523]
alsa-lib-1.2.15.1/src/ucm/main.c: scope_hint: In function 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3038:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 3038 |                 str1 = strchr(identifier, '/');
#      |                      ^
# 3036|   		err = set_modifier_user(uc_mgr, value, 0);
# 3037|   	else {
# 3038|-> 		str1 = strchr(identifier, '/');
# 3039|   		if (str1) {
# 3040|   			str = strdup(str1 + 1);

Error: COMPILER_WARNING (CWE-704): [#def524]
alsa-lib-1.2.15.1/src/ucm/main.c:3038:22: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 3036|   		err = set_modifier_user(uc_mgr, value, 0);
# 3037|   	else {
# 3038|-> 		str1 = strchr(identifier, '/');
# 3039|   		if (str1) {
# 3040|   			str = strdup(str1 + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
alsa-lib-1.2.15.1/src/ucm/parser.c:57:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
#   55|   		file++;
#   56|   	if (env == NULL)
#   57|-> 		snprintf(fn, fn_len, "%s/%s/%s%s%s",
#   58|   			 snd_config_topdir(), version > 1 ? "ucm2" : "ucm",
#   59|   			 dir ?: "", dir ? "/" : "", file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
alsa-lib-1.2.15.1/src/ucm/parser.c:57:17: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
#   55|   		file++;
#   56|   	if (env == NULL)
#   57|-> 		snprintf(fn, fn_len, "%s/%s/%s%s%s",
#   58|   			 snd_config_topdir(), version > 1 ? "ucm2" : "ucm",
#   59|   			 dir ?: "", dir ? "/" : "", file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
alsa-lib-1.2.15.1/src/ucm/parser.c:102:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3793:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3793:20: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3794:31: call_function: calling 'parse_string' from 'uc_mgr_scan_master_configs'
#  100|   	int err;
#  101|   
#  102|-> 	err = snd_config_get_string(n, (const char **)res);
#  103|   	if (err < 0)
#  104|   		return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
alsa-lib-1.2.15.1/src/ucm/parser.c:102:15: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3793:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3793:20: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3794:31: call_function: calling 'parse_string' from 'uc_mgr_scan_master_configs'
#  100|   	int err;
#  101|   
#  102|-> 	err = snd_config_get_string(n, (const char **)res);
#  103|   	if (err < 0)
#  104|   		return err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
alsa-lib-1.2.15.1/src/ucm/parser.c:191:17: warning[-Wanalyzer-malloc-leak]: leak of 'name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2009:12: enter_function: entry to 'parse_modifier_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2014:16: call_function: calling 'parse_compound_check_legacy' from 'parse_modifier_name'
#  189|   {
#  190|   	if (strchr(name, '.')) {
#  191|-> 		snd_error(UCM, "char '.' not allowed in '%s'", name);
#  192|   		return 0;
#  193|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
alsa-lib-1.2.15.1/src/ucm/parser.c:191:17: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2812:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2822:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
#  189|   {
#  190|   	if (strchr(name, '.')) {
#  191|-> 		snd_error(UCM, "char '.' not allowed in '%s'", name);
#  192|   		return 0;
#  193|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
alsa-lib-1.2.15.1/src/ucm/parser.c:351:15: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2812:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2822:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: return_function: returning to 'parse_master_section' from 'parse_get_safe_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2828:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2834:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2835:15: call_function: calling 'uc_mgr_evaluate_inplace' from 'parse_master_section'
#  349|   	int err;
#  350|   
#  351|-> 	err = snd_config_search(cfg, "DefineRegex", &d);
#  352|   	if (err == -ENOENT)
#  353|   		return 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
alsa-lib-1.2.15.1/src/ucm/parser.c:357:13: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2812:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2822:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: return_function: returning to 'parse_master_section' from 'parse_get_safe_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2828:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2834:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2835:15: call_function: calling 'uc_mgr_evaluate_inplace' from 'parse_master_section'
#  355|   		return err;
#  356|   
#  357|-> 	if (snd_config_get_type(d) != SND_CONFIG_TYPE_COMPOUND) {
#  358|   		snd_error(UCM, "compound type expected for DefineRegex");
#  359|   		return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
alsa-lib-1.2.15.1/src/ucm/parser.c:358:17: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2812:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2822:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: return_function: returning to 'parse_master_section' from 'parse_get_safe_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2828:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2834:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2835:15: call_function: calling 'uc_mgr_evaluate_inplace' from 'parse_master_section'
#  356|   
#  357|   	if (snd_config_get_type(d) != SND_CONFIG_TYPE_COMPOUND) {
#  358|-> 		snd_error(UCM, "compound type expected for DefineRegex");
#  359|   		return -EINVAL;
#  360|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
alsa-lib-1.2.15.1/src/ucm/parser.c:363:17: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2812:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2822:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: return_function: returning to 'parse_master_section' from 'parse_get_safe_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2828:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2834:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2835:15: call_function: calling 'uc_mgr_evaluate_inplace' from 'parse_master_section'
#  361|   
#  362|   	if (uc_mgr->conf_format < 3) {
#  363|-> 		snd_error(UCM, "DefineRegex is supported in v3+ syntax");
#  364|   		return -EINVAL;
#  365|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
alsa-lib-1.2.15.1/src/ucm/parser.c:367:9: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2812:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2822:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: return_function: returning to 'parse_master_section' from 'parse_get_safe_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2828:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2834:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2835:15: call_function: calling 'uc_mgr_evaluate_inplace' from 'parse_master_section'
#  365|   	}
#  366|   
#  367|-> 	snd_config_for_each(i, next, d) {
#  368|   		n = snd_config_iterator_entry(i);
#  369|   		err = snd_config_get_id(n, &id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
alsa-lib-1.2.15.1/src/ucm/parser.c:397:15: warning[-Wanalyzer-malloc-leak]: leak of 'use_case_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2812:12: enter_function: entry to 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2822:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: call_function: calling 'parse_get_safe_name' from 'parse_master_section'
alsa-lib-1.2.15.1/src/ucm/parser.c:2827:15: return_function: returning to 'parse_master_section' from 'parse_get_safe_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2828:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2834:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2835:15: call_function: calling 'uc_mgr_evaluate_inplace' from 'parse_master_section'
#  395|   	int err;
#  396|   
#  397|-> 	err = snd_config_search(cfg, "Define", &d);
#  398|   	if (err == -ENOENT)
#  399|   		return evaluate_regex(uc_mgr, cfg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
alsa-lib-1.2.15.1/src/ucm/parser.c:1097:17: warning[-Wanalyzer-malloc-leak]: leak of 'val'
alsa-lib-1.2.15.1/src/ucm/parser.c:3076:12: enter_function: entry to 'parse_controls'
alsa-lib-1.2.15.1/src/ucm/parser.c:3080:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3084:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3084:15: call_function: calling 'parse_sequence' from 'parse_controls'
# 1095|   	cmpt_seq->device = find_component_dev(uc_mgr, val);
# 1096|   	if (!cmpt_seq->device) {
# 1097|-> 		snd_error(UCM, "Cannot find component device %s", val);
# 1098|   		free(val);
# 1099|   		return -EINVAL;

Error: CPPCHECK_WARNING (CWE-401): [#def538]
alsa-lib-1.2.15.1/src/ucm/parser.c:1329: error[memleak]: Memory leak: curr
# 1327|   	list_add_tail(&curr->list, base);
# 1328|   	curr->data = val;
# 1329|-> 	return 0;
# 1330|   }
# 1331|   

Error: CPPCHECK_WARNING (CWE-401): [#def539]
alsa-lib-1.2.15.1/src/ucm/parser.c:1476: error[memleak]: Memory leak: modifier
# 1474|   	err = uc_mgr_evaluate_inplace(uc_mgr, cfg);
# 1475|   	if (err < 0)
# 1476|-> 		return err;
# 1477|   
# 1478|   	snd_config_for_each(i, next, cfg) {

Error: CPPCHECK_WARNING (CWE-401): [#def540]
alsa-lib-1.2.15.1/src/ucm/parser.c:1736: error[memleak]: Memory leak: device
# 1734|   	device->orig_name = strdup(name);
# 1735|   	if (device->orig_name == NULL)
# 1736|-> 		return -ENOMEM;
# 1737|   
# 1738|   	err = parse_device_fields(uc_mgr, cfg, device);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
alsa-lib-1.2.15.1/src/ucm/parser.c:2219:33: warning[-Wanalyzer-malloc-leak]: leak of 'norm_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2200:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2204:20: branch_false: following 'false' branch (when 'orig_name' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:2208:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2213:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2217:20: branch_true: following 'true' branch (when 'colon' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2218:29: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2219:33: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:2219:33: danger: 'norm_name' leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 2217|   		if (colon) {
# 2218|   			if (colon[1] == '\0' || strchr(colon + 1, ' ')) {
# 2219|-> 				snd_error(UCM, "device descriptor cannot be empty or contain spaces '%s'", orig_name);
# 2220|   				err = -EINVAL;
# 2221|   				goto __error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
alsa-lib-1.2.15.1/src/ucm/parser.c:2219:33: warning[-Wanalyzer-malloc-leak]: leak of 'orig_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2200:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:2204:20: branch_false: following 'false' branch (when 'orig_name' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2208:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2213:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2217:20: branch_true: following 'true' branch (when 'colon' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2218:29: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2219:33: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:2219:33: danger: 'orig_name' leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
# 2217|   		if (colon) {
# 2218|   			if (colon[1] == '\0' || strchr(colon + 1, ' ')) {
# 2219|-> 				snd_error(UCM, "device descriptor cannot be empty or contain spaces '%s'", orig_name);
# 2220|   				err = -EINVAL;
# 2221|   				goto __error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
alsa-lib-1.2.15.1/src/ucm/parser.c:2241:33: warning[-Wanalyzer-malloc-leak]: leak of 'norm_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2192:12: enter_function: entry to 'verb_normalize_device_names'
alsa-lib-1.2.15.1/src/ucm/parser.c:2200:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2204:20: branch_false: following 'false' branch (when 'orig_name' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:2208:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2213:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2217:20: branch_false: following 'false' branch (when 'colon' is NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2238:1: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2239:31: call_function: calling 'parse_device_index' from 'verb_normalize_device_names'
alsa-lib-1.2.15.1/src/ucm/parser.c:2239:31: return_function: returning to 'verb_normalize_device_names' from 'parse_device_index'
alsa-lib-1.2.15.1/src/ucm/parser.c:2240:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2241:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2241:33: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:2241:33: danger: 'norm_name' leaks here; was allocated at [(6)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/5)
# 2239|   			err = parse_device_index(&norm_name, &index);
# 2240|   			if (err < 0) {
# 2241|-> 				snd_error(UCM, "cannot parse device name '%s'", orig_name);
# 2242|   				goto __error;
# 2243|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
alsa-lib-1.2.15.1/src/ucm/parser.c:2241:33: warning[-Wanalyzer-malloc-leak]: leak of 'orig_name'
alsa-lib-1.2.15.1/src/ucm/parser.c:2192:12: enter_function: entry to 'verb_normalize_device_names'
alsa-lib-1.2.15.1/src/ucm/parser.c:2200:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:36: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2203:29: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:2204:20: branch_false: following 'false' branch (when 'orig_name' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2207:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2208:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2213:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2217:20: branch_false: following 'false' branch (when 'colon' is NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:2238:1: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2239:31: call_function: calling 'parse_device_index' from 'verb_normalize_device_names'
alsa-lib-1.2.15.1/src/ucm/parser.c:2239:31: return_function: returning to 'verb_normalize_device_names' from 'parse_device_index'
alsa-lib-1.2.15.1/src/ucm/parser.c:2240:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:2241:33: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:2241:33: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:2241:33: danger: 'orig_name' leaks here; was allocated at [(4)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/3)
# 2239|   			err = parse_device_index(&norm_name, &index);
# 2240|   			if (err < 0) {
# 2241|-> 				snd_error(UCM, "cannot parse device name '%s'", orig_name);
# 2242|   				goto __error;
# 2243|   			}

Error: CPPCHECK_WARNING (CWE-401): [#def545]
alsa-lib-1.2.15.1/src/ucm/parser.c:2648: error[memleak]: Memory leak: verb
# 2646|   	list_add_tail(&verb->list, &uc_mgr->verb_list);
# 2647|   	if (use_case_name == NULL)
# 2648|-> 		return -EINVAL;
# 2649|   	verb->name = strdup(use_case_name);
# 2650|   	if (verb->name == NULL)

Error: CPPCHECK_WARNING (CWE-401): [#def546]
alsa-lib-1.2.15.1/src/ucm/parser.c:2651: error[memleak]: Memory leak: verb
# 2649|   	verb->name = strdup(use_case_name);
# 2650|   	if (verb->name == NULL)
# 2651|-> 		return -ENOMEM;
# 2652|   
# 2653|   	if (comment != NULL) {

Error: CPPCHECK_WARNING (CWE-401): [#def547]
alsa-lib-1.2.15.1/src/ucm/parser.c:2656: error[memleak]: Memory leak: verb
# 2654|   		verb->comment = strdup(comment);
# 2655|   		if (verb->comment == NULL)
# 2656|-> 			return -ENOMEM;
# 2657|   	}
# 2658|   

Error: CPPCHECK_WARNING (CWE-401): [#def548]
alsa-lib-1.2.15.1/src/ucm/parser.c:2656: error[memleak]: Memory leak: verb.name
# 2654|   		verb->comment = strdup(comment);
# 2655|   		if (verb->comment == NULL)
# 2656|-> 			return -ENOMEM;
# 2657|   	}
# 2658|   

Error: CPPCHECK_WARNING (CWE-401): [#def549]
alsa-lib-1.2.15.1/src/ucm/parser.c:2662: error[memleak]: Memory leak: verb
# 2660|   	err = uc_mgr_evaluate_inplace(uc_mgr, cfg);
# 2661|   	if (err < 0)
# 2662|-> 		return err;
# 2663|   
# 2664|   	/* parse master config sections */

Error: CPPCHECK_WARNING (CWE-401): [#def550]
alsa-lib-1.2.15.1/src/ucm/parser.c:2662: error[memleak]: Memory leak: verb.comment
# 2660|   	err = uc_mgr_evaluate_inplace(uc_mgr, cfg);
# 2661|   	if (err < 0)
# 2662|-> 		return err;
# 2663|   
# 2664|   	/* parse master config sections */

Error: CPPCHECK_WARNING (CWE-457): [#def551]
alsa-lib-1.2.15.1/src/ucm/parser.c:3293: error[legacyUninitvar]: Uninitialized variable: *&info
# 3291|   	const char *_driver, *_name, *_long_name;
# 3292|   
# 3293|-> 	snd_ctl_card_info_alloca(&info);
# 3294|   
# 3295|   	card = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: throw: if 'snd_card_next' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/14)
# 3727|   	i = -1;
# 3728|   	while (j / 2 < cards) {
# 3729|-> 		err = snd_card_next(&i);
# 3730|   		if (err < 0)
# 3731|   			goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: throw: if 'snd_card_next' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
# 3727|   	i = -1;
# 3728|   	while (j / 2 < cards) {
# 3729|-> 		err = snd_card_next(&i);
# 3730|   		if (err < 0)
# 3731|   			goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
alsa-lib-1.2.15.1/src/ucm/parser.c:3735:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3735:23: throw: if 'snd_use_case_mgr_open' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3735:23: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/14)
# 3733|   			break;
# 3734|   		snprintf(fn, sizeof(fn), "-hw:%d", i);
# 3735|-> 		err = snd_use_case_mgr_open(&uc_mgr, fn);
# 3736|   		if (err == -ENOENT || err == -ENXIO)
# 3737|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
alsa-lib-1.2.15.1/src/ucm/parser.c:3735:23: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3735:23: throw: if 'snd_use_case_mgr_open' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3735:23: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
# 3733|   			break;
# 3734|   		snprintf(fn, sizeof(fn), "-hw:%d", i);
# 3735|-> 		err = snd_use_case_mgr_open(&uc_mgr, fn);
# 3736|   		if (err == -ENOENT || err == -ENXIO)
# 3737|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
alsa-lib-1.2.15.1/src/ucm/parser.c:3739:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3739:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3739:25: throw: if 'snd_strerror' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3739:25: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/14)
# 3737|   			continue;
# 3738|   		if (err < 0) {
# 3739|-> 			snd_error(UCM, "Unable to open '%s': %s", fn, snd_strerror(err));
# 3740|   			goto __err;
# 3741|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
alsa-lib-1.2.15.1/src/ucm/parser.c:3739:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3739:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3739:25: throw: if 'snd_strerror' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3739:25: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
# 3737|   			continue;
# 3738|   		if (err < 0) {
# 3739|-> 			snd_error(UCM, "Unable to open '%s': %s", fn, snd_strerror(err));
# 3740|   			goto __err;
# 3741|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: throw: if 'snd_use_case_get' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/14)
# 3740|   			goto __err;
# 3741|   		}
# 3742|-> 		err = snd_use_case_get(uc_mgr, "comment", (const char **)&s);
# 3743|   		if (err < 0) {
# 3744|   			err = snd_card_get_longname(i, &s);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: throw: if 'snd_use_case_get' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
# 3740|   			goto __err;
# 3741|   		}
# 3742|-> 		err = snd_use_case_get(uc_mgr, "comment", (const char **)&s);
# 3743|   		if (err < 0) {
# 3744|   			err = snd_card_get_longname(i, &s);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
alsa-lib-1.2.15.1/src/ucm/parser.c:3744:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3743:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3744:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3744:31: throw: if 'snd_card_get_longname' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3744:31: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/14)
# 3742|   		err = snd_use_case_get(uc_mgr, "comment", (const char **)&s);
# 3743|   		if (err < 0) {
# 3744|-> 			err = snd_card_get_longname(i, &s);
# 3745|   			if (err < 0)
# 3746|   				goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
alsa-lib-1.2.15.1/src/ucm/parser.c:3744:31: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3743:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3744:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3744:31: throw: if 'snd_card_get_longname' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3744:31: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/4)
# 3742|   		err = snd_use_case_get(uc_mgr, "comment", (const char **)&s);
# 3743|   		if (err < 0) {
# 3744|-> 			err = snd_card_get_longname(i, &s);
# 3745|   			if (err < 0)
# 3746|   				goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
alsa-lib-1.2.15.1/src/ucm/parser.c:3748:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3748:17: throw: if 'snd_use_case_mgr_close' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3748:17: danger: '<unknown>' leaks here; was allocated at [(15)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/14)
# 3746|   				goto __err;
# 3747|   		}
# 3748|-> 		snd_use_case_mgr_close(uc_mgr);
# 3749|   		list[j] = strdup(fn + 1);
# 3750|   		if (list[j] == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
alsa-lib-1.2.15.1/src/ucm/parser.c:3748:17: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3748:17: throw: if 'snd_use_case_mgr_close' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3748:17: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
# 3746|   				goto __err;
# 3747|   		}
# 3748|-> 		snd_use_case_mgr_close(uc_mgr);
# 3749|   		list[j] = strdup(fn + 1);
# 3750|   		if (list[j] == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: throw: if 'uc_mgr_config_load' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/15)
# 3770|   			continue;
# 3771|   
# 3772|-> 		err = uc_mgr_config_load(2, filename, &cfg);
# 3773|   		if (err < 0)
# 3774|   			goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: throw: if 'uc_mgr_config_load' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/5)
# 3770|   			continue;
# 3771|   
# 3772|-> 		err = uc_mgr_config_load(2, filename, &cfg);
# 3773|   		if (err < 0)
# 3774|   			goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: throw: if 'snd_config_search' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/15)
# 3773|   		if (err < 0)
# 3774|   			goto __err;
# 3775|-> 		err = snd_config_search(cfg, "Syntax", &c);
# 3776|   		if (err < 0) {
# 3777|   			snd_error(UCM, "Syntax field not found in %s", d_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: throw: if 'snd_config_search' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/5)
# 3773|   		if (err < 0)
# 3774|   			goto __err;
# 3775|-> 		err = snd_config_search(cfg, "Syntax", &c);
# 3776|   		if (err < 0) {
# 3777|   			snd_error(UCM, "Syntax field not found in %s", d_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/15)
# 3775|   		err = snd_config_search(cfg, "Syntax", &c);
# 3776|   		if (err < 0) {
# 3777|-> 			snd_error(UCM, "Syntax field not found in %s", d_name);
# 3778|   			snd_config_delete(cfg);
# 3779|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/5)
# 3775|   		err = snd_config_search(cfg, "Syntax", &c);
# 3776|   		if (err < 0) {
# 3777|-> 			snd_error(UCM, "Syntax field not found in %s", d_name);
# 3778|   			snd_config_delete(cfg);
# 3779|   			continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
alsa-lib-1.2.15.1/src/ucm/parser.c:3778:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3778:25: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3778:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/15)
# 3776|   		if (err < 0) {
# 3777|   			snd_error(UCM, "Syntax field not found in %s", d_name);
# 3778|-> 			snd_config_delete(cfg);
# 3779|   			continue;
# 3780|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
alsa-lib-1.2.15.1/src/ucm/parser.c:3778:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3777:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3778:25: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3778:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/5)
# 3776|   		if (err < 0) {
# 3777|   			snd_error(UCM, "Syntax field not found in %s", d_name);
# 3778|-> 			snd_config_delete(cfg);
# 3779|   			continue;
# 3780|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: throw: if 'snd_config_get_integer' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/15)
# 3779|   			continue;
# 3780|   		}
# 3781|-> 		err = snd_config_get_integer(c, &l);
# 3782|   		if (err < 0) {
# 3783|   			snd_error(UCM, "Syntax field is invalid in %s", d_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: throw: if 'snd_config_get_integer' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/5)
# 3779|   			continue;
# 3780|   		}
# 3781|-> 		err = snd_config_get_integer(c, &l);
# 3782|   		if (err < 0) {
# 3783|   			snd_error(UCM, "Syntax field is invalid in %s", d_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/15)
# 3781|   		err = snd_config_get_integer(c, &l);
# 3782|   		if (err < 0) {
# 3783|-> 			snd_error(UCM, "Syntax field is invalid in %s", d_name);
# 3784|   			snd_config_delete(cfg);
# 3785|   			goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/5)
# 3781|   		err = snd_config_get_integer(c, &l);
# 3782|   		if (err < 0) {
# 3783|-> 			snd_error(UCM, "Syntax field is invalid in %s", d_name);
# 3784|   			snd_config_delete(cfg);
# 3785|   			goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
alsa-lib-1.2.15.1/src/ucm/parser.c:3784:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3784:25: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3784:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/15)
# 3782|   		if (err < 0) {
# 3783|   			snd_error(UCM, "Syntax field is invalid in %s", d_name);
# 3784|-> 			snd_config_delete(cfg);
# 3785|   			goto __err;
# 3786|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
alsa-lib-1.2.15.1/src/ucm/parser.c:3784:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3783:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3784:25: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3784:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/5)
# 3782|   		if (err < 0) {
# 3783|   			snd_error(UCM, "Syntax field is invalid in %s", d_name);
# 3784|-> 			snd_config_delete(cfg);
# 3785|   			goto __err;
# 3786|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/15)
# 3786|   		}
# 3787|   		if (l < 2 || l > SYNTAX_VERSION_MAX) {
# 3788|-> 			snd_error(UCM, "Incompatible syntax %d in %s", l, d_name);
# 3789|   			snd_config_delete(cfg);
# 3790|   			goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: throw: if 'snd_lib_log' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/5)
# 3786|   		}
# 3787|   		if (l < 2 || l > SYNTAX_VERSION_MAX) {
# 3788|-> 			snd_error(UCM, "Incompatible syntax %d in %s", l, d_name);
# 3789|   			snd_config_delete(cfg);
# 3790|   			goto __err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
alsa-lib-1.2.15.1/src/ucm/parser.c:3789:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3789:25: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3789:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/15)
# 3787|   		if (l < 2 || l > SYNTAX_VERSION_MAX) {
# 3788|   			snd_error(UCM, "Incompatible syntax %d in %s", l, d_name);
# 3789|-> 			snd_config_delete(cfg);
# 3790|   			goto __err;
# 3791|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
alsa-lib-1.2.15.1/src/ucm/parser.c:3789:25: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3788:25: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3789:25: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3789:25: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/5)
# 3787|   		if (l < 2 || l > SYNTAX_VERSION_MAX) {
# 3788|   			snd_error(UCM, "Incompatible syntax %d in %s", l, d_name);
# 3789|-> 			snd_config_delete(cfg);
# 3790|   			goto __err;
# 3791|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: throw: if 'snd_config_search' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/15)
# 3790|   			goto __err;
# 3791|   		}
# 3792|-> 		err = snd_config_search(cfg, "Comment", &c);
# 3793|   		if (err >= 0) {
# 3794|   			err = parse_string(c, (char **)&list[j+1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: throw: if 'snd_config_search' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/5)
# 3790|   			goto __err;
# 3791|   		}
# 3792|-> 		err = snd_config_search(cfg, "Comment", &c);
# 3793|   		if (err >= 0) {
# 3794|   			err = parse_string(c, (char **)&list[j+1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3793:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/15)
# 3798|   			}
# 3799|   		}
# 3800|-> 		snd_config_delete(cfg);
# 3801|   		list[j] = strdup(d_name);
# 3802|   		if (list[j] == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: warning[-Wanalyzer-malloc-leak]: leak of 'list'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3721:16: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3793:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: throw: if 'snd_config_delete' throws an exception...
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: danger: 'list' leaks here; was allocated at [(6)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/5)
# 3798|   			}
# 3799|   		}
# 3800|-> 		snd_config_delete(cfg);
# 3801|   		list[j] = strdup(d_name);
# 3802|   		if (list[j] == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
alsa-lib-1.2.15.1/src/ucm/parser.c:3811:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
alsa-lib-1.2.15.1/src/ucm/parser.c:3655:5: enter_function: entry to 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3672:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3674:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3699:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3706:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3722:12: branch_false: following 'false' branch (when 'list' is non-NULL)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3727:9: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3728:16: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3729:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3734:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3738:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3742:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3749:27: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3750:20: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3730:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3732:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3759:21: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3761:34: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: call_function: calling 'ucm_filename' from 'uc_mgr_scan_master_configs'
alsa-lib-1.2.15.1/src/ucm/parser.c:3764:17: return_function: returning to 'uc_mgr_scan_master_configs' from 'ucm_filename'
alsa-lib-1.2.15.1/src/ucm/parser.c:3766:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3772:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3773:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3775:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3776:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3781:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3782:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3787:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3792:23: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3793:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3800:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3802:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/parser.c:3806:21: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3806:20: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/parser.c:3806:20: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/parser.c:3811:25: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/15)
# 3809|   			const char *save2 = list[j + 1];
# 3810|   			memmove(list + 2, list, j * sizeof(char *));
# 3811|-> 			list[0] = save1;
# 3812|   			list[1] = save2;
# 3813|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def587]
alsa-lib-1.2.15.1/src/ucm/ucm_cond.c:192: error[legacyUninitvar]: Uninitialized variable: *&elem_id
#  190|   	int err, i, items;
#  191|   
#  192|-> 	snd_ctl_elem_id_alloca(&elem_id);
#  193|   	snd_ctl_elem_info_alloca(&elem_info);
#  194|   

Error: CPPCHECK_WARNING (CWE-457): [#def588]
alsa-lib-1.2.15.1/src/ucm/ucm_cond.c:193: error[legacyUninitvar]: Uninitialized variable: *&elem_info
#  191|   
#  192|   	snd_ctl_elem_id_alloca(&elem_id);
#  193|-> 	snd_ctl_elem_info_alloca(&elem_info);
#  194|   
#  195|   	err = get_string(eval, "Device", &device);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def589]
alsa-lib-1.2.15.1/src/ucm/ucm_exec.c:176:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'argv'
alsa-lib-1.2.15.1/src/ucm/ucm_exec.c:184:5: enter_function: entry to 'uc_mgr_exec'
alsa-lib-1.2.15.1/src/ucm/ucm_exec.c:196:13: call_function: calling 'parse_args' from 'uc_mgr_exec'
#  174|   		}
#  175|   	}
#  176|-> 	(*argv)[i] = NULL;
#  177|   	return 0;
#  178|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
alsa-lib-1.2.15.1/src/ucm/ucm_local.h:323:26: warning[-Wanalyzer-malloc-leak]: leak of 'cdev'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  321|   {
#  322|   	return uc_mgr && uc_mgr->local_config &&
#  323|-> 			 snd_config_iterator_first(uc_mgr->local_config) !=
#  324|   			 snd_config_iterator_end(uc_mgr->local_config);
#  325|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
alsa-lib-1.2.15.1/src/ucm/ucm_local.h:324:26: warning[-Wanalyzer-malloc-leak]: leak of 'cdev'
alsa-lib-1.2.15.1/src/ucm/main.c:3012:5: enter_function: entry to 'snd_use_case_set'
alsa-lib-1.2.15.1/src/ucm/main.c:3021:12: branch_true: following 'true' branch (when the strings are equal)...
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/main.c:3022:23: call_function: calling 'set_fixedboot_user' from 'snd_use_case_set'
#  322|   	return uc_mgr && uc_mgr->local_config &&
#  323|   			 snd_config_iterator_first(uc_mgr->local_config) !=
#  324|-> 			 snd_config_iterator_end(uc_mgr->local_config);
#  325|   }
#  326|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:47:15: warning[-Wanalyzer-malloc-leak]: leak of 'extract_substring(data,  match + (long unsigned int)i * 8)'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:56:12: enter_function: entry to 'set_variables'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:66:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:68:13: call_function: calling 'extract_substring' from 'set_variables'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:68:13: return_function: returning to 'set_variables' from 'extract_substring'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:69:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:71:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:73:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:73:12: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:75:21: branch_true: following 'true' branch (when 'i < match_size')...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:76:26: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:76:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:78:21: call_function: calling 'extract_substring' from 'set_variables'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:78:21: return_function: returning to 'set_variables' from 'extract_substring'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:79:20: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:81:17: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:82:23: throw: if 'uc_mgr_set_variable' throws an exception...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:47:15: danger: 'extract_substring(data,  match + (long unsigned int)i * 8)' leaks here; was allocated at [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20)
#   45|   	size_t len;
#   46|   
#   47|-> 	len = match->rm_eo - match->rm_so;
#   48|   	s = malloc(len + 1);
#   49|   	if (s == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:47:15: warning[-Wanalyzer-malloc-leak]: leak of 'extract_substring(data,  match)'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:56:12: enter_function: entry to 'set_variables'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:66:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:68:13: call_function: calling 'extract_substring' from 'set_variables'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:68:13: return_function: returning to 'set_variables' from 'extract_substring'
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:69:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:71:15: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:71:15: throw: if 'uc_mgr_set_variable' throws an exception...
alsa-lib-1.2.15.1/src/ucm/ucm_regex.c:47:15: danger: 'extract_substring(data,  match)' leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#   45|   	size_t len;
#   46|   
#   47|-> 	len = match->rm_eo - match->rm_so;
#   48|   	s = malloc(len + 1);
#   49|   	if (s == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:796:15: warning[-Wanalyzer-malloc-leak]: leak of 's'
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1003:5: enter_function: entry to 'uc_mgr_substitute_tree'
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1012:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1014:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1014:12: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1026:13: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1026:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1027:21: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1027:20: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1028:31: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1029:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1031:30: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1031:30: call_function: calling 'uc_mgr_substitute_check' from 'uc_mgr_substitute_tree'
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1031:30: return_function: returning to 'uc_mgr_substitute_tree' from 'uc_mgr_substitute_check'
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1031:28: branch_false: following 'false' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1033:29: branch_false: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1033:28: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1034:40: branch_true: ...to here
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:1034:40: call_function: calling 'rval_evali' from 'uc_mgr_substitute_tree'
#  794|   	strcpy(s, e);
#  795|   	s[l-1] = '\0';
#  796|-> 	err = _snd_eval_string(&dst, s + 8, rval_eval_var_cb, uc_mgr);
#  797|   	free(s);
#  798|   	if (err < 0) {

Error: COMPILER_WARNING (CWE-704): [#def595]
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c: scope_hint: In function 'strchr_with_escape'
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:832:19: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  832 |                 s = strchr(str, c);
#      |                   ^
#  830|   
#  831|   	while (1) {
#  832|-> 		s = strchr(str, c);
#  833|   		if (s && s != str) {
#  834|   			if (*(s - 1) == '\\') {

Error: COMPILER_WARNING (CWE-704): [#def596]
alsa-lib-1.2.15.1/src/ucm/ucm_subs.c:832:19: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  830|   
#  831|   	while (1) {
#  832|-> 		s = strchr(str, c);
#  833|   		if (s && s != str) {
#  834|   			if (*(s - 1) == '\\') {

Error: CPPCHECK_WARNING (CWE-457): [#def597]
alsa-lib-1.2.15.1/src/ucm/utils.c:271: error[legacyUninitvar]: Uninitialized variable: *&info
#  269|   	int err, card, ucm_group, ucm_offset;
#  270|   
#  271|-> 	snd_ctl_card_info_alloca(&info);
#  272|   
#  273|   	ucm_group = _snd_is_ucm_device(device);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def598]
alsa-lib-1.2.15.1/src/userfile.c:93:39: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
alsa-lib-1.2.15.1/src/userfile.c:78:9: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/userfile.c:79:9: branch_true: ...to here
alsa-lib-1.2.15.1/src/userfile.c:82:12: branch_true: following 'true' branch...
alsa-lib-1.2.15.1/src/userfile.c:84:20: branch_true: following 'true' branch (when 'home' is NULL)...
alsa-lib-1.2.15.1/src/userfile.c:85:47: branch_true: ...to here
alsa-lib-1.2.15.1/src/userfile.c:89:31: acquire_memory: allocated here
alsa-lib-1.2.15.1/src/userfile.c:90:28: branch_false: following 'false' branch (when 'buf' is non-NULL)...
alsa-lib-1.2.15.1/src/userfile.c:90:28: branch_false: ...to here
alsa-lib-1.2.15.1/src/userfile.c:93:39: throw: if 'getpwuid_r' throws an exception...
alsa-lib-1.2.15.1/src/userfile.c:93:39: danger: 'buf' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   91|   				goto out;
#   92|   
#   93|-> 			while ((err = getpwuid_r(id, &pwent, buf, bufsize, &p)) == ERANGE) {
#   94|   				char *newbuf;
#   95|   				bufsize += 1024;

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
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-5.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-x86_64
project-namealsa-lib-1.2.15.1-1.fc44
store-results-to/tmp/tmpsxydj7l3/alsa-lib-1.2.15.1-1.fc44.tar.xz
time-created2026-01-08 15:32:24
time-finished2026-01-08 15:35:30
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpsxydj7l3/alsa-lib-1.2.15.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpsxydj7l3/alsa-lib-1.2.15.1-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9