block/curl: fix minor memory leaks
Signed-off-by: Jeff Cody <jcody@redhat.com> Reviewed-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Jeff Cody <jcody@redhat.com>
This commit is contained in:
		
							parent
							
								
									2d25964d18
								
							
						
					
					
						commit
						996922de45
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue