]> git.proxmox.com Git - mirror_qemu.git/commit - util/path.c
init_paths: fix minor memory leak
authorKirill Batuzov <batuzovk@ispras.ru>
Thu, 10 Apr 2014 14:07:57 +0000 (18:07 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 28 Apr 2014 04:55:32 +0000 (08:55 +0400)
commit00a9cacaea9afa4cb72871d1067bb21f75dcc3bd
treea65af6c12013220d05f8442190658608f12f4f9e
parentb0f9300ca389952aeaa4b96aa58bf3661e227420
init_paths: fix minor memory leak

Fields "name" (created with strdup in new_entry) and "pathname"
(created with g_strdup_printf in new_entry) of pathelem struct should
be freed before the whole struct is.

Signed-off-by: Kirill Batuzov <batuzovk@ispras.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
util/path.c