From 19b39e415981240b8178d557879f7f1d9b78320c Mon Sep 17 00:00:00 2001 From: Benny Morgan Date: Sun, 30 Jun 2013 21:35:43 +0200 Subject: [PATCH] - Fix memory leak - After cwc_running is set to 0 in capmt_destroy, capmt and capmt->id was not free'd --- src/capmt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/capmt.c b/src/capmt.c index 341abce5..16a774cc 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; }