summaryrefslogtreecommitdiffstats
path: root/python/run-python-tests
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-08 11:44:31 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-08 18:14:34 +0000
commitd69ad18bef9c048f9aeaad6092701251f502b5bf (patch)
tree62c6948adf3c20ce5228b9fd8b151adf99832ca7 /python/run-python-tests
parentc74537fb3426293c16e474ae75f452e4f95b10fe (diff)
downloadlibguestfs-d69ad18bef9c048f9aeaad6092701251f502b5bf.tar.gz
libguestfs-d69ad18bef9c048f9aeaad6092701251f502b5bf.tar.xz
libguestfs-d69ad18bef9c048f9aeaad6092701251f502b5bf.zip
daemon: proto: Close fd along error paths (found by Coverity).
Error: RESOURCE_LEAK: /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:894: open_fn: Calling opening function "open". /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:894: var_assign: Assigning: "fd" = handle returned from "open(filename, 0)". /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:903: noescape: Variable "fd" is not closed or saved in function "read". /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:911: leaked_handle: Handle variable "fd" going out of scope leaks the handle. /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:918: leaked_handle: Handle variable "fd" going out of scope leaks the handle. (cherry picked from commit d0453c02545c825810fec6e5874c55d7ac5ec678)
Diffstat (limited to 'python/run-python-tests')
0 files changed, 0 insertions, 0 deletions