[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH] block/curl: Fix wrong free state
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-trivial] [Qemu-devel] [PATCH] block/curl: Fix wrong free statement |
Date: |
Tue, 04 Sep 2012 16:11:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
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 <address@hidden>
Thanks, applied to block-next.
Kevin