removed possible double free() of buf in parse_headers (suggestion by GuessWho)

This commit is contained in:
csoler 2016-07-16 18:26:04 -04:00
parent 71168c7a00
commit 95202d648b

View file

@ -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;
} }