From 1f92c6b3e8b885fb22635d19a90f97fda2a9428a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 15 Jan 2007 09:08:40 +0000 Subject: [PATCH] Must free http on the error path; nothing else will do it --- src/net/tcp/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/tcp/http.c b/src/net/tcp/http.c index dfa39f53..346f5a83 100644 --- a/src/net/tcp/http.c +++ b/src/net/tcp/http.c @@ -424,5 +424,6 @@ int http_get ( struct uri *uri, struct buffer *buffer, struct async *parent ) { err: DBGC ( http, "HTTP %p could not create request: %s\n", http, strerror ( rc ) ); + free ( http ); return rc; }