# HG changeset patch # User stephan@xxxxxxxxxxxxxxxxxxxxx # Date 1175866102 -7200 # Node ID 8070cd1733ee8a94031ffa72ae0cac6aced04d0d # Parent 7e431ea834a877b1f0c90bdb1e6f1346da4e81cc add missing free for xc_mmu_t struture in xc_finish_mmu_updates to avoid memory leak Signed-off-by: Stephan Creutz diff -r 7e431ea834a8 -r 8070cd1733ee tools/libxc/xc_private.c --- a/tools/libxc/xc_private.c Tue Apr 03 13:22:37 2007 +0100 +++ b/tools/libxc/xc_private.c Fri Apr 06 15:28:22 2007 +0200 @@ -204,7 +204,9 @@ int xc_add_mmu_update(int xc_handle, xc_ int xc_finish_mmu_updates(int xc_handle, xc_mmu_t *mmu) { - return flush_mmu_updates(xc_handle, mmu); + int ret = flush_mmu_updates(xc_handle, mmu); + free(mmu); + return ret; } int xc_memory_op(int xc_handle,