OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c1129
)
conf: fix memory leak on the error path in parse_args()
author
Jaroslav Kysela
<perex@perex.cz>
Wed, 10 Mar 2021 17:10:57 +0000
(18:10 +0100)
committer
Jaroslav Kysela
<perex@perex.cz>
Thu, 11 Mar 2021 08:26:07 +0000
(09:26 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c
patch
|
blob
|
history
diff --git
a/src/conf.c
b/src/conf.c
index
38eefbf
..
14b14b5
100644
(file)
--- a/
src/conf.c
+++ b/
src/conf.c
@@
-5169,6
+5169,7
@@
static int parse_args(snd_config_t *subs, const char *str, snd_config_t *defs)
err = snd_config_add(subs, sub);
if (err < 0) {
_err:
+ snd_config_delete(sub);
free(val);
return err;
}