From: Richard W.M. Jones Date: Fri, 19 Nov 2010 15:30:45 +0000 (+0000) Subject: inspect: Fix memory leak of hostname. X-Git-Tag: 1.7.11~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=4f9a670d09b4d620fccc36e7c2df8fc912749f97;p=libguestfs.git inspect: Fix memory leak of hostname. This fixes a memory leak introduced by commit fab75c0337d7897d10ea5e95e47ac05eab81ace9. --- diff --git a/src/inspect.c b/src/inspect.c index baf4b3a..e42dca8 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -2346,6 +2346,7 @@ guestfs___free_inspect_info (guestfs_h *g) free (g->fses[i].device); free (g->fses[i].product_name); free (g->fses[i].arch); + free (g->fses[i].hostname); free (g->fses[i].windows_systemroot); size_t j; for (j = 0; j < g->fses[i].nr_fstab; ++j) {