mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed possible double free() of buf in parse_headers (suggestion by GuessWho)
This commit is contained in:
parent
71168c7a00
commit
95202d648b
@ -577,6 +577,7 @@ static int parse_headers(dearmour_arg_t *arg,ops_error_t **errors,
|
||||
if (nbuf == NULL)
|
||||
{
|
||||
free(buf);
|
||||
buf = NULL ;
|
||||
rtn=-1;
|
||||
goto end;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user