summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorStefan Weil2013-06-16 12:14:36 +0200
committerMichael Tokarev2013-07-27 09:22:54 +0200
commit80cba1b71eb9a75404d1effddec8ffa9f0d6d6fb (patch)
tree87bfc77e1e1da2773a83a0605fcd595639209cbc /include/exec
parenttimer: make timers_state static (diff)
downloadqemu-80cba1b71eb9a75404d1effddec8ffa9f0d6d6fb.tar.gz
qemu-80cba1b71eb9a75404d1effddec8ffa9f0d6d6fb.tar.xz
qemu-80cba1b71eb9a75404d1effddec8ffa9f0d6d6fb.zip
hw/9pfs: Fix potential memory leak and avoid reuse of freed memory
The leak was reported by cppcheck. Function proxy_init also calls g_free for ctx->fs_root. Avoid reuse of this memory by setting ctx->fs_root to NULL. Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: M. Mohan Kumar <mohan@in.ibm.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions