From 75b96aca6ff53c7e782efe670045376df4f7d199 Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Thu, 15 Sep 2011 14:39:53 -0500 Subject: [PATCH] qapi: generate qapi_free_* functions for *List types Reviewed-by: Anthony Liguori Signed-off-by: Michael Roth Signed-off-by: Luiz Capitulino --- scripts/qapi-types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index fc0f7af8f6..4797a70813 100644 --- a/scripts/qapi-types.py +++ b/scripts/qapi-types.py @@ -254,6 +254,8 @@ def generate_type_cleanup(name): 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'):