« Previous | Next » 

Revision a3400466

IDa340046614644a8958883954b96e92a87a5e78f7

Added by dunrong huang almost 12 years ago

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 <>
Signed-off-by: dunrong huang <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences