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:
3e5580d
)
fix memory leak
author
Clemens Ladisch
<clemens@ladisch.de>
Tue, 5 Oct 2004 15:33:04 +0000
(15:33 +0000)
committer
Clemens Ladisch
<clemens@ladisch.de>
Tue, 5 Oct 2004 15:33:04 +0000
(15:33 +0000)
fix memory leak if snd_user_file() fails
src/conf.c
patch
|
blob
|
history
diff --git
a/src/conf.c
b/src/conf.c
index
786554c
..
55aa20a
100644
(file)
--- a/
src/conf.c
+++ b/
src/conf.c
@@
-2788,8
+2788,11
@@
int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t
char *name;
if ((err = snd_config_get_ascii(n, &name)) < 0)
goto _err;
- if ((err = snd_user_file(name, &fi[idx].name)) < 0)
+ if ((err = snd_user_file(name, &fi[idx].name)) < 0) {
+ SNDERR("\"%s\" is not a word", name);
+ free(name);
goto _err;
+ }
free(name);
idx++;
hit = 1;