Skip to content

Commit

Permalink
qom: Fix memory leak in function container_get
Browse files Browse the repository at this point in the history
Valgrind reported this memory leak which occured very often.

Test scenario:

qemu-system-i386 (no arguments), only BIOS started, terminate with
monitor command (quit).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
  • Loading branch information
stweil committed May 3, 2012
1 parent 9cf1f00 commit f156f23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qom/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Object *container_get(Object *root, const char *path)
}
}

g_strfreev(parts);

return obj;
}

Expand Down

0 comments on commit f156f23

Please sign in to comment.