projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
145ae98
)
libxc: fix memory leak in load_p2m_frame_list error handling
author
Matthew Daley
<mattjd@gmail.com>
Wed, 18 Sep 2013 03:37:38 +0000
(15:37 +1200)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/tools/libxc/xc_domain_restore.c
b/tools/libxc/xc_domain_restore.c
index b418963e4b96d03fbc5414c7263ba1fd71e7f5e4..939a76b47c1befd0748b1d85f83c65dd1f71f12d 100644
(file)
--- a/
tools/libxc/xc_domain_restore.c
+++ b/
tools/libxc/xc_domain_restore.c
@@
-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;
}