All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/libxc/xc_linux_save.c
@ 2005-08-11 21:15 Jerone Young
  2005-08-12 10:17 ` Bastian Blank
  0 siblings, 1 reply; 3+ messages in thread
From: Jerone Young @ 2005-08-11 21:15 UTC (permalink / raw)
  To: xen-devel

remove possible memory leaks.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>

--- tools/libxc/xc_linux_save.c.old     2005-08-11 13:14:35.000000000
-0500
+++ tools/libxc/xc_linux_save.c 2005-08-11 13:25:08.000000000 -0500
@@ -1053,7 +1053,18 @@ int xc_linux_save(int xc_handle, int io_

     if (pfn_type != NULL)
         free(pfn_type);
+
+    if (pfn_batch != NULL)
+       free(pfn_batch);

+    if (to_send != NULL)
+       free(to_send);
+
+    if (to_fix != NULL)
+       free(to_fix);
+
+    if (to_skip != NULL)
+       free(to_skip);
     DPRINTF("Save exit rc=%d\n",rc);
     return !!rc;
}


-- 
Jerone Young
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-12 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-11 21:15 [PATCH] tools/libxc/xc_linux_save.c Jerone Young
2005-08-12 10:17 ` Bastian Blank
2005-08-12 12:48   ` Vincent Hanquez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.