mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -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)
|
||||
{
|
||||
free(buf);
|
||||
buf = NULL ;
|
||||
rtn=-1;
|
||||
goto end;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue