inspect: Fix memory leak of hostname.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 19 Nov 2010 15:30:45 +0000 (15:30 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 19 Nov 2010 15:32:02 +0000 (15:32 +0000)
This fixes a memory leak introduced by
commit fab75c0337d7897d10ea5e95e47ac05eab81ace9.

src/inspect.c

index baf4b3a..e42dca8 100644 (file)
@@ -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) {