mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
kdd: fix free of array-typed value
g->id is an array and is allocated as part of g itself; it's not a separate allocation. Coverity-ID: 1054980 Signed-off-by: Matthew Daley <mattjd@gmail.com> Acked-by: Tim Deegan <tim@xen.org> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
6425b20c0f
commit
da89e7ef29
1 file changed
-1
@@ -619,7 +619,6 @@ void kdd_guest_teardown(kdd_guest *g)
|
||||
{
|
||||
flush_maps(g);
|
||||
xc_interface_close(g->xc_handle);
|
||||
free(g->id);
|
||||
free(g->hvm_buf);
|
||||
free(g);
|
||||
}
|
||||