]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
- Fix memory leak - After cwc_running is set to 0 in capmt_destroy, capmt and capmt...
authorBenny Morgan <benny@zuragon.com>
Sun, 30 Jun 2013 19:35:43 +0000 (21:35 +0200)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 11 Jul 2013 19:16:02 +0000 (20:16 +0100)
(cherry picked from commit 19b39e415981240b8178d557879f7f1d9b78320c)

src/capmt.c

index 341abce59fd58593f9f59183fa40169b472b72a3..16a774cc70339eabe8dedd171a12bf5c0fbc6043 100644 (file)
@@ -665,6 +665,9 @@ capmt_thread(void *aux)
     pthread_mutex_unlock(&global_lock);
   }
 
+  free(capmt->capmt_id);
+  free(capmt);
+
   return NULL;
 }