summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-08 13:23:15 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-08 18:14:35 +0000
commit138e2dcff07013ef76e9f82fc32369fe91afd05e (patch)
treea814212116c3e17041513d38707414d55e988eef /python
parent7bae98895654b7eb126828971e934f8b393775f9 (diff)
downloadlibguestfs-138e2dcff07013ef76e9f82fc32369fe91afd05e.tar.gz
libguestfs-138e2dcff07013ef76e9f82fc32369fe91afd05e.tar.xz
libguestfs-138e2dcff07013ef76e9f82fc32369fe91afd05e.zip
daemon: debug: Close fd along error path (found by Coverity).
Error: RESOURCE_LEAK: /builddir/build/BUILD/libguestfs-1.16.5/daemon/debug.c:469: open_fn: Calling opening function "open". /builddir/build/BUILD/libguestfs-1.16.5/daemon/debug.c:469: var_assign: Assigning: "fd" = handle returned from "open("/proc/sys/kernel/core_pattern", 1)". /builddir/build/BUILD/libguestfs-1.16.5/daemon/debug.c:474: noescape: Variable "fd" is not closed or saved in function "write". /builddir/build/BUILD/libguestfs-1.16.5/daemon/debug.c:476: leaked_handle: Handle variable "fd" going out of scope leaks the handle. (cherry picked from commit 3b3d9ca4e1fa0a4f566cb2a8008540ee640b738b)
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions