xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix build error in libxl
@ 2010-12-23  2:08 Zhang, Yang Z
  2011-01-03 13:40 ` Christoph Egger
  0 siblings, 1 reply; 16+ messages in thread
From: Zhang, Yang Z @ 2010-12-23  2:08 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com; +Cc: Keir Fraser

Move free(disks) into the bracket, or it will show error 'disks' used uninitialized when build libxl.

best regards
yang

diff -r f69037cc4674 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Wed Dec 22 17:48:31 2010 +0000
+++ b/tools/libxl/libxl.c       Thu Dec 23 10:03:35 2010 +0800
@@ -1402,8 +1402,8 @@
             }
             libxl_device_disk_destroy(&disks[i]);
         }
+        free(disks);
     }
-    free(disks);
     flexarray_set(dm_args, num++, NULL);
     return (char **) flexarray_contents(dm_args);
 }

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

end of thread, other threads:[~2011-01-05 23:39 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23  2:08 [PATCH] fix build error in libxl Zhang, Yang Z
2011-01-03 13:40 ` Christoph Egger
2010-12-09 12:39   ` [PATCH 0 of 5] support of NUMA topology in xl Juergen Gross
2010-12-09 12:39     ` [PATCH 1 of 5] Support getting topology info in libxl Juergen Gross
2010-12-09 13:11       ` Gianni Tedesco
2010-12-09 13:19         ` Juergen Gross
2010-12-10 17:30           ` Ian Jackson
2010-12-09 12:39     ` [PATCH 2 of 5] support topolgy info in xl info Juergen Gross
2010-12-09 12:39     ` [PATCH 3 of 5] Extend cpupools to support numa Juergen Gross
2010-12-09 12:39     ` [PATCH 4 of 5] Support renaming of cpupools Juergen Gross
2010-12-09 12:39     ` [PATCH 5 of 5] Support new xl command cpupool-numa-split Juergen Gross
2010-12-17  6:09     ` [PATCH 0 of 5] support of NUMA topology in xl Juergen Gross
2010-12-17 17:46       ` Ian Jackson
2010-12-17 17:50         ` Keir Fraser
2010-12-17 21:42         ` [PATCH] xl: fix compilation warning on libxl.c Wei Huang
2011-01-05 23:39           ` [PATCH] xl: fix compilation warning on libxl.c [and 2 more messages] Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).