lib: Fix memory leak in tmpdir/cachedir code (found by valgrind).

This fixes commit 1efed122c0.
This commit is contained in:
Richard W.M. Jones
2012-11-10 08:55:38 +00:00
parent 99377e2748
commit fcf8032cbd

View File

@@ -345,6 +345,9 @@ guestfs_close (guestfs_h *g)
if (g->pda)
hash_free (g->pda);
free (g->tmpdir);
free (g->env_tmpdir);
free (g->int_tmpdir);
free (g->int_cachedir);
free (g->last_error);
free (g->path);
free (g->qemu);