diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-22 00:24:28 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-22 00:26:34 +0100 |
commit | 4b2a6827419d8c45878c53eb6fa8f1424836d774 (patch) | |
tree | 5903dd468132224acdd1a37355598a50471f8c82 | |
parent | b606c0940a1309a7034d5c479e8601965075985d (diff) |
fix minor memleak in prober
-rw-r--r-- | src/modules/alsa/alsa-util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c index e154f6ea..599079ca 100644 --- a/src/modules/alsa/alsa-util.c +++ b/src/modules/alsa/alsa-util.c @@ -836,6 +836,8 @@ snd_pcm_t *pa_alsa_open_by_device_string( if (dev) *dev = d; + else + pa_xfree(d); if (ss->channels != map->channels) pa_channel_map_init_extend(map, ss->channels, PA_CHANNEL_MAP_ALSA); |