git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53f670c
)
inspect: Fix memory leak of hostname.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 19 Nov 2010 15:30:45 +0000
(15:30 +0000)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/src/inspect.c
b/src/inspect.c
index
baf4b3a
..
e42dca8
100644
(file)
--- 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) {