[alsa-devel] [PATCH] jack: Fixing a small memory leak

Valentin Corfu corfuvalentin at gmail.com
Mon Aug 10 16:58:26 CEST 2015


Signed-off-by: Valentin Corfu <corfuvalentin at gmail.com>
---
 jack/pcm_jack.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/jack/pcm_jack.c b/jack/pcm_jack.c
index 568ec43..de9c46e 100644
--- a/jack/pcm_jack.c
+++ b/jack/pcm_jack.c
@@ -103,6 +103,7 @@ static void snd_pcm_jack_free(snd_pcm_jack_t *jack)
 		if (jack->io.poll_fd >= 0)
 			close(jack->io.poll_fd);
 		free(jack->areas);
+		free(jack->ports);
 		free(jack);
 	}
 }
-- 
1.9.1



More information about the Alsa-devel mailing list