commit | a340046614644a8958883954b96e92a87a5e78f7 | [log] [tgz] |
---|---|---|
author | dunrong huang <riegamaths@gmail.com> | Fri May 18 19:14:13 2012 +0800 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Mon May 21 15:40:51 2012 -0500 |
tree | ab9691eacc335fc49a8abfc056ec4f53af8576ef | |
parent | 2a633c461e96cb9a856292c46917653bd43959c8 [diff] |
qdev: Fix memory leak 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. Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: dunrong huang <riegamaths@gmail.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>