From 4f9a670d09b4d620fccc36e7c2df8fc912749f97 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 19 Nov 2010 15:30:45 +0000 Subject: [PATCH] inspect: Fix memory leak of hostname. This fixes a memory leak introduced by commit fab75c0337d7897d10ea5e95e47ac05eab81ace9. --- src/inspect.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 1.8.3.1