Skip to contentSkip to conversation

Fix minor memory leak in xend

PATCH New Kouya Shimura 1 participant 1 message Sep 13, 2007 Arm/actions semi architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix minor memory leak in xend

Fix minor memory leak in xend.

tools/python/xen/lowlevel/xc/xc.c +1 -0
diff -r a00cc97b392a tools/python/xen/lowlevel/xc/xc.c
@@ -346,6 +346,7 @@ static PyObject *pyxc_domain_getinfo(XcO
             Py_DECREF(list);
             if ( pyhandle  != NULL ) { Py_DECREF(pyhandle);  }
             if ( info_dict != NULL ) { Py_DECREF(info_dict); }
+            free(info);
             return NULL;
         }
         for ( j = 0; j < sizeof(xen_domain_handle_t); j++ )

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel