Re: [Qemu-devel] [PATCH] block/curl: Fix wrong free statement

2012-09-04 Thread Kevin Wolf
Am 01.09.2012 11:06, schrieb Stefan Weil: > Report from smatch: > block/curl.c:546 curl_close(21) info: redundant null check on s->url calling > free() > > The check was redundant, and free was also wrong because the memory > was allocated using g_strdup. > > Signed-off-by: Stefan Weil Thanks,

[Qemu-devel] [PATCH] block/curl: Fix wrong free statement

2012-09-01 Thread Stefan Weil
Report from smatch: block/curl.c:546 curl_close(21) info: redundant null check on s->url calling free() The check was redundant, and free was also wrong because the memory was allocated using g_strdup. Signed-off-by: Stefan Weil --- block/curl.c |3 +-- 1 file changed, 1 insertion(+), 2 de