From: Lennart Poettering Date: Wed, 21 Jan 2009 23:24:28 +0000 (+0100) Subject: fix minor memleak in prober X-Git-Tag: v0.9.15-test1~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b2a6827419d8c45878c53eb6fa8f1424836d774;p=platform%2Fupstream%2Fpulseaudio.git fix minor memleak in prober --- diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c index e154f6ea8..599079cad 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);