From 97df8ce2fa2711270b8c2c3cec5c40031b7eac5c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 22 Sep 2016 20:45:24 +0200 Subject: [PATCH] (JACK) Try to prevent memory leak --- audio/drivers/jack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio/drivers/jack.c b/audio/drivers/jack.c index ad1574b50e..ab3610b117 100644 --- a/audio/drivers/jack.c +++ b/audio/drivers/jack.c @@ -228,6 +228,8 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency) return jd; error: + for (i = 0; i < parsed; i++) + free(dest_ports[i]); if (jports != NULL) jack_free(jports); free(jd);