]> git.proxmox.com Git - qemu.git/commit
block/curl: Fix wrong free statement
authorStefan Weil <sw@weilnetz.de>
Sat, 1 Sep 2012 09:06:45 +0000 (11:06 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:16 +0000 (21:44 -0500)
commit1e32a1651aeb071481b20f873f8d61a0692f7be5
treeef5c09cd5d7368a1cb595dc1917942ddd4b4ff13
parent3900d1d99267f16710762786c8e50ca83923bda0
block/curl: Fix wrong free statement

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 <sw@weilnetz.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 45724d6d02383b0d7d4a90e05787fca7c55cb070)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/curl.c