]> xenbits.xensource.com Git - xen.git/commitdiff
libxc: fix memory leak in load_p2m_frame_list error handling
authorMatthew Daley <mattjd@gmail.com>
Wed, 18 Sep 2013 03:37:38 +0000 (15:37 +1200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Sep 2013 11:35:24 +0000 (12:35 +0100)
Coverity-ID: 1055885
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_domain_restore.c

index b418963e4b96d03fbc5414c7263ba1fd71e7f5e4..939a76b47c1befd0748b1d85f83c65dd1f71f12d 100644 (file)
@@ -368,6 +368,7 @@ static xen_pfn_t *load_p2m_frame_list(
                  (P2M_FL_ENTRIES - 1) * sizeof(xen_pfn_t)) )
     {
         PERROR("read p2m_frame_list failed");
+        free(p2m_frame_list);
         return NULL;
     }