Re: [Qemu-devel] [PATCH 1.1 v2] qdev: Fix memory leak

2012-05-18 Thread Stefan Weil
Am 18.05.2012 13:14, schrieb dunrong huang: The str allocated in visit_type_str was not freed. The visit_type_str function is an input visitor(-to-native) here, it will allocate memory for caller, so the caller is responsible for freeing the memory. Signed-off-by: dunrong huang --- hw/qdev-pr

[Qemu-devel] [PATCH 1.1 v2] qdev: Fix memory leak

2012-05-18 Thread dunrong huang
The str allocated in visit_type_str was not freed. The visit_type_str function is an input visitor(-to-native) here, it will allocate memory for caller, so the caller is responsible for freeing the memory. Signed-off-by: dunrong huang --- hw/qdev-properties.c |6 +- 1 files changed, 5 i