Make URI structures reference-counted.

This commit is contained in:
Michael Brown
2007-05-28 17:35:15 +00:00
parent bc694ec768
commit 656485c1f1
5 changed files with 28 additions and 15 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ int start_download ( const char *uri_string, struct async *parent,
err:
async_uninit ( &download->async );
ufree ( download->buffer.addr );
free_uri ( download->uri );
uri_put ( download->uri );
free ( download );
return rc;
}
@@ -150,7 +150,7 @@ static void download_sigchld ( struct async *async,
/* Discard the buffer */
ufree ( download->buffer.addr );
}
free_uri ( download->uri );
uri_put ( download->uri );
download->uri = NULL;
/* Terminate ourselves */