mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-30 09:48:59 -04:00
removed possible double free() of buf in parse_headers (suggestion by GuessWho)
This commit is contained in:
parent
71168c7a00
commit
95202d648b
1 changed files with 1 additions and 0 deletions
|
@ -577,6 +577,7 @@ static int parse_headers(dearmour_arg_t *arg,ops_error_t **errors,
|
||||||
if (nbuf == NULL)
|
if (nbuf == NULL)
|
||||||
{
|
{
|
||||||
free(buf);
|
free(buf);
|
||||||
|
buf = NULL ;
|
||||||
rtn=-1;
|
rtn=-1;
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue