From afa752f5fbebf49fcd399f85d1db85ef29cefc03 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 15 Jan 2007 09:18:06 +0000 Subject: 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. --- src/usr/fetch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/usr') diff --git a/src/usr/fetch.c b/src/usr/fetch.c index 9e3c2de6f..71304bb21 100644 --- a/src/usr/fetch.c +++ b/src/usr/fetch.c @@ -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: -- cgit v1.2.3-55-g7522