[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(QMP/String/etc-to-native) here, it will allocate memory for caller, so the caller is responsible for freeing the memory. Signed-off-by: dunrong huang riegama...@gmail.com --- hw/qdev-properties.c

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(QMP/String/etc-to-native) here, it will allocate memory for caller, so the caller is responsible for freeing the memory. Signed-off-by: dunrong