mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libxl: correctly dispose of dominfo list in libxl_name_to_domid
Tamas reported ssid_label was leaked. Use the designated function to free dominfo list to fix the leakage. Reported-by: Tamas K Lengyel <tamas@tklengyel.com> Signed-off-by: Wei Liu <wei.liu2@citrix.com> Tested-by: Tamas K Lengyel <tamas@tklengyel.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
9d8c1d1814
commit
f50dd67950
1 file changed
+1
-1
@@ -90,7 +90,7 @@ int libxl_name_to_domid(libxl_ctx *ctx, const char *name,
|
||||
}
|
||||
free(domname);
|
||||
}
|
||||
free(dominfo);
|
||||
libxl_dominfo_list_free(dominfo, nb_domains);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||