aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2011-09-15 14:39:53 -0500
committerLuiz Capitulino <lcapitulino@redhat.com>2011-10-04 11:00:46 -0300
commit75b96aca6ff53c7e782efe670045376df4f7d199 (patch)
tree706e1a70958a1e1aed9b42ca4e831d0f15db8efc /scripts
parent5666dd19dd95d966be00d0c3e7efdfaecc096ff3 (diff)
downloadqemu-75b96aca6ff53c7e782efe670045376df4f7d199.zip
qemu-75b96aca6ff53c7e782efe670045376df4f7d199.tar.gz
qemu-75b96aca6ff53c7e782efe670045376df4f7d199.tar.bz2
qapi: generate qapi_free_* functions for *List types
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi-types.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index fc0f7af..4797a70 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -254,6 +254,8 @@ for expr in exprs:
ret = "\n"
if expr.has_key('type'):
ret += generate_struct(expr['type'], "", expr['data']) + "\n"
+ ret += generate_type_cleanup_decl(expr['type'] + "List")
+ fdef.write(generate_type_cleanup(expr['type'] + "List") + "\n")
ret += generate_type_cleanup_decl(expr['type'])
fdef.write(generate_type_cleanup(expr['type']) + "\n")
elif expr.has_key('union'):