]> Git Repo - qemu.git/commitdiff
block/curl: fix minor memory leaks
authorJeff Cody <[email protected]>
Tue, 7 Nov 2017 22:27:23 +0000 (17:27 -0500)
committerJeff Cody <[email protected]>
Mon, 18 Dec 2017 20:44:39 +0000 (15:44 -0500)
Signed-off-by: Jeff Cody <[email protected]>
Reviewed-by: Richard W.M. Jones <[email protected]>
Signed-off-by: Jeff Cody <[email protected]>
block/curl.c

index 00a98799b68ac078bbe33391c07190ff612ae0e4..35cf417f59e7900d3594fd4e82346f2fe3c53530 100644 (file)
@@ -857,6 +857,9 @@ out_noclean:
     qemu_mutex_destroy(&s->mutex);
     g_free(s->cookie);
     g_free(s->url);
+    g_free(s->username);
+    g_free(s->proxyusername);
+    g_free(s->proxypassword);
     qemu_opts_del(opts);
     return -EINVAL;
 }
@@ -955,6 +958,9 @@ static void curl_close(BlockDriverState *bs)
 
     g_free(s->cookie);
     g_free(s->url);
+    g_free(s->username);
+    g_free(s->proxyusername);
+    g_free(s->proxypassword);
 }
 
 static int64_t curl_getlength(BlockDriverState *bs)
This page took 0.022585 seconds and 4 git commands to generate.