diff --git a/src/examples/http_chunked_compression.c b/src/examples/http_chunked_compression.c index 167771fa..36b3e1fd 100644 --- a/src/examples/http_chunked_compression.c +++ b/src/examples/http_chunked_compression.c @@ -101,8 +101,8 @@ read_cb (void *cls, uint64_t pos, char *mem, size_t size) else { memcpy (mem, buf, size); - free (buf); } + free (buf); // buf may be set even on error return done: free (src); return size;