Fix CID 11340 by freeing prior to return

This commit is contained in:
Shawn Webb
2013-02-12 11:19:40 -05:00
parent 8c7ffc98a1
commit bbe371cf28

View File

@@ -2343,6 +2343,7 @@ static int decodehex(const char *hexsig)
}
if(!(decoded = decodehexspecial(pt, &dlen))) {
mprintf("!Decoding failed\n");
free(pt);
return -1;
}
bw = write(1, decoded, dlen);