You need to sign in or sign up before continuing.
  • O
    Coverity: Fix resource leak in nodeinfo.c · 739cfc31
    Osier Yang 提交于
    Error: RESOURCE_LEAK:
    /builddir/build/BUILD/libvirt-0.9.10/src/nodeinfo.c:629: alloc_fn: Calling allocation function "fopen".
    /builddir/build/BUILD/libvirt-0.9.10/src/nodeinfo.c:629: var_assign: Assigning: "cpuinfo" =  storage returned from "fopen("/proc/cpuinfo", "r")".
    /builddir/build/BUILD/libvirt-0.9.10/src/nodeinfo.c:638: leaked_storage: Variable "cpuinfo" going out of scope leaks the storage it points to.
    739cfc31
nodeinfo.c 27.3 KB