From: Benny Morgan Date: Sun, 30 Jun 2013 19:35:43 +0000 (+0200) Subject: - Fix memory leak - After cwc_running is set to 0 in capmt_destroy, capmt and capmt... X-Git-Tag: 3.4patch1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34352d67e5087531e4d04008c5d578dd39c82c96;p=thirdparty%2Ftvheadend.git - Fix memory leak - After cwc_running is set to 0 in capmt_destroy, capmt and capmt->id was not free'd (cherry picked from commit 19b39e415981240b8178d557879f7f1d9b78320c) --- diff --git a/src/capmt.c b/src/capmt.c index 341abce59..16a774cc7 100644 --- a/src/capmt.c +++ b/src/capmt.c @@ -665,6 +665,9 @@ capmt_thread(void *aux) pthread_mutex_unlock(&global_lock); } + free(capmt->capmt_id); + free(capmt); + return NULL; }