kdd: fix free of array-typed value
authorMatthew Daley <mattjd@gmail.com>
Tue, 10 Sep 2013 14:34:21 +0000 (02:34 +1200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 13 Sep 2013 12:15:09 +0000 (13:15 +0100)
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>
tools/debugger/kdd/kdd-xen.c

index 4fbea7df735169a023bf9368c9e63399d8513f3a..f3f9529f9f0a3a584b8cbf5dd0ca52a4ebcbabd4 100644 (file)
@@ -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);
 }