diff options
author | Matthew Daley <mattjd@gmail.com> | 2013-09-18 15:37:38 +1200 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-09-25 12:35:24 +0100 |
commit | 3b8782d95d03b40bfa255b61b224eeef614f09d2 (patch) | |
tree | 695df81422f098eaf5a32c70fee2dee3903afde5 /tools | |
parent | 145ae98bfab8280744ad5e800cc036e1c84c0486 (diff) | |
download | xen-3b8782d95d03b40bfa255b61b224eeef614f09d2.tar.gz xen-3b8782d95d03b40bfa255b61b224eeef614f09d2.tar.bz2 xen-3b8782d95d03b40bfa255b61b224eeef614f09d2.zip |
libxc: fix memory leak in load_p2m_frame_list error handling
Coverity-ID: 1055885
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxc/xc_domain_restore.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxc/xc_domain_restore.c b/tools/libxc/xc_domain_restore.c index b418963e4b..939a76b47c 100644 --- 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; } |