mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-07 15:15:40 -04:00
Fix CID 11340 by freeing prior to return
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user