Must free http on the error path; nothing else will do it
authorMichael Brown <mcb30@etherboot.org>
Mon, 15 Jan 2007 09:08:40 +0000 (09:08 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 15 Jan 2007 09:08:40 +0000 (09:08 +0000)
src/net/tcp/http.c

index dfa39f5..346f5a8 100644 (file)
@@ -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;
 }