Browse code

Fix CID 11340 by freeing prior to return

Shawn Webb authored on 2013/02/13 01:19:40
Showing 1 changed files
... ...
@@ -2343,6 +2343,7 @@ static int decodehex(const char *hexsig)
2343 2343
 	    }
2344 2344
 	    if(!(decoded = decodehexspecial(pt, &dlen))) {
2345 2345
 		mprintf("!Decoding failed\n");
2346
+        free(pt);
2346 2347
 		return -1;
2347 2348
 	    }
2348 2349
 	    bw = write(1, decoded, dlen);