cmocka: Fix a double free in cmprintf_tap()
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 10 Feb 2015 14:36:13 +0000 (15:36 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 10 Feb 2015 14:49:30 +0000 (15:49 +0100)
CID: #1268622

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmocka.c

index 124e0b8..fd7b8b3 100644 (file)
@@ -2134,7 +2134,6 @@ static void cmprintf_tap(enum cm_printf_type type,
                 print_message("# %s\n", q);
 
                 if (p == NULL) {
-                    libc_free(msg);
                     break;
                 }
                 p++;