libxl: fix memory leak in libxl_cpuid_dispose
authorWei Liu <wei.liu2@citrix.com>
Tue, 13 May 2014 21:53:48 +0000 (22:53 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 21 May 2014 09:59:41 +0000 (10:59 +0100)
commite620f2dfa5ef288efcae0995cbf197bd79c364b6
tree32bd1979dc3773cb3effda07a427b805e501fe0e
parentcf37a923eae411d420f6519e6dcfd13e25cf276c
libxl: fix memory leak in libxl_cpuid_dispose

libxl_cpuid_policy_list is not allocated with GC-aware allocation so it
needs to be freed manually, just like what libxl_string_list_dispose and
libxl_key_value_list_dispose do.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_cpuid.c