diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-08-19 02:23:11 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-08-19 02:23:11 +0000 |
commit | 521d15babb5be8f3ce47d2e73b1b3470c71159ba (patch) | |
tree | 29fdbbd38e8752cd08ceead0144048751e6e1e92 /src/modules | |
parent | 1b7fff323853cee6944a47316dd882785f365f77 (diff) | |
download | pulseaudio-521d15babb5be8f3ce47d2e73b1b3470c71159ba.tar.gz |
fix a memory leak
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1290 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/module-volume-restore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/module-volume-restore.c b/src/modules/module-volume-restore.c index 0e4f278c2..59c47743d 100644 --- a/src/modules/module-volume-restore.c +++ b/src/modules/module-volume-restore.c @@ -237,8 +237,10 @@ static char* client_name(pa_client *c) { t = pa_sprintf_malloc("%s$%s", c->driver, c->name); t[strcspn(t, "\n\r#")] = 0; - if (!*t) + if (!*t) { + pa_xfree(t); return NULL; + } if ((e = strrchr(t, '('))) { char *k = e + 1 + strspn(e + 1, "0123456789-"); |