Closed snej closed 1 year ago
The Clang static analyzer found a code path where a heap block is freed twice, in http_read_cb() in http.c
http_read_cb()
free(buf->base);
Unless I’m missing something, flow of control will go from line 96 to line 132 without returning or changing buf or buf->base in the interim.
buf
buf->base
good catch, in practice double-free would happen if the server is not HTTP -- sends something that fails to parse by HTTP parser
The Clang static analyzer found a code path where a heap block is freed twice, in
http_read_cb()
in http.cfree(buf->base);
free(buf->base);
Unless I’m missing something, flow of control will go from line 96 to line 132 without returning or changing
buf
orbuf->base
in the interim.