summaryrefslogtreecommitdiffstats
path: root/python/examples/guestfs-python.pod
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-08 11:41:13 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-08 18:14:34 +0000
commitc74537fb3426293c16e474ae75f452e4f95b10fe (patch)
treeea07c661c41a82c42c8761a1d81b27f190d2e0f7 /python/examples/guestfs-python.pod
parent691bbd2e4811b0ac09afd2e40b756f3a61be13dc (diff)
downloadlibguestfs-c74537fb3426293c16e474ae75f452e4f95b10fe.tar.gz
libguestfs-c74537fb3426293c16e474ae75f452e4f95b10fe.tar.xz
libguestfs-c74537fb3426293c16e474ae75f452e4f95b10fe.zip
daemon: upload: Close fd along error path (found by Coverity).
Error: RESOURCE_LEAK: /builddir/build/BUILD/libguestfs-1.16.5/daemon/upload.c:225: open_fn: Calling opening function "open". /builddir/build/BUILD/libguestfs-1.16.5/daemon/upload.c:225: var_assign: Assigning: "fd" = handle returned from "open(filename, 0)". /builddir/build/BUILD/libguestfs-1.16.5/daemon/upload.c:233: noescape: Variable "fd" is not closed or saved in function "lseek". /builddir/build/BUILD/libguestfs-1.16.5/daemon/upload.c:235: leaked_handle: Handle variable "fd" going out of scope leaks the handle. (cherry picked from commit fbf10d7f682178a6a71cfa8dbac2acd23f869597)
Diffstat (limited to 'python/examples/guestfs-python.pod')
0 files changed, 0 insertions, 0 deletions