mirror of
https://github.com/ipxe/ipxe
synced 2025-12-15 00:12:19 +03:00
Must free http on the error path; nothing else will do it
This commit is contained in:
@@ -424,5 +424,6 @@ int http_get ( struct uri *uri, struct buffer *buffer, struct async *parent ) {
|
|||||||
err:
|
err:
|
||||||
DBGC ( http, "HTTP %p could not create request: %s\n",
|
DBGC ( http, "HTTP %p could not create request: %s\n",
|
||||||
http, strerror ( rc ) );
|
http, strerror ( rc ) );
|
||||||
|
free ( http );
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user