mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Protocol's get() method no longer takes ownership of the URI. HTTP is the
exception rather than the rule; we may as well keep things clean for other protocols.
This commit is contained in:
@@ -86,7 +86,6 @@ int fetch ( const char *uri_string, userptr_t *data, size_t *len ) {
|
||||
async_init_orphan ( &async );
|
||||
if ( ( rc = download ( uri, &buffer, &async ) ) != 0 )
|
||||
goto err;
|
||||
uri = NULL;
|
||||
async_wait ( &async, &rc, 1 );
|
||||
if ( rc != 0 )
|
||||
goto err;
|
||||
@@ -98,7 +97,7 @@ int fetch ( const char *uri_string, userptr_t *data, size_t *len ) {
|
||||
/* Release temporary resources. The ebuffer storage is now
|
||||
* owned by our caller, so we don't free it.
|
||||
*/
|
||||
|
||||
free_uri ( uri );
|
||||
return 0;
|
||||
|
||||
err:
|
||||
|
||||
Reference in New Issue
Block a user