summaryrefslogtreecommitdiffstats
path: root/python/examples
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-08 11:32:43 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-08 18:14:34 +0000
commit3e2ebf4053ab0ad39976ab421fbf326e4500b0a0 (patch)
tree4071c588fd6bee9df65c62ec8cd92468f29142cb /python/examples
parentdb985c0485ae7a956ea71f5f5737d538c4185cd9 (diff)
downloadlibguestfs-3e2ebf4053ab0ad39976ab421fbf326e4500b0a0.tar.gz
libguestfs-3e2ebf4053ab0ad39976ab421fbf326e4500b0a0.tar.xz
libguestfs-3e2ebf4053ab0ad39976ab421fbf326e4500b0a0.zip
proto: Close file along error and cancel paths (found by Coverity).
Error: RESOURCE_LEAK: /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:1125: open_fn: Calling opening function "open". /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:1125: var_assign: Assigning: "fd" = handle returned from "open(filename, 833, 438)". /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:1133: noescape: Variable "fd" is not closed or saved in function "xwrite". /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:1146: leaked_handle: Handle variable "fd" going out of scope leaks the handle. /builddir/build/BUILD/libguestfs-1.16.5/src/proto.c:1173: leaked_handle: Handle variable "fd" going out of scope leaks the handle. (cherry picked from commit 855aaf414af3b8c8ca1f722a589fd251cc8317ee)
Diffstat (limited to 'python/examples')
0 files changed, 0 insertions, 0 deletions