diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2018-07-23 11:41:17 +0100 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2018-07-23 11:41:17 +0100 |
commit | 3bed5265f9c792edfcd593eeaa93675711e5e264 (patch) | |
tree | 60fcbcc5048f276f07022b12d9b34245a6e8ae8d /Incremental.c | |
parent | 9421e599c44cd50d3df4cd019cd3c53d9320e93d (diff) |
Cherrypick master patches up to 20th of July 2018. LP: #1781427
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Incremental.c b/Incremental.c index 0beab163..0c5698ee 100644 --- a/Incremental.c +++ b/Incremental.c @@ -1413,6 +1413,7 @@ restart: sysfs_free(sra); } } + map_free(mapl); return rv; } @@ -1587,6 +1588,8 @@ static int Incremental_container(struct supertype *st, char *devname, assemble_container_content(st, mdfd, ra, c, chosen_name, &result); + map_free(map); + map = NULL; close(mdfd); } if (c->export && result) { @@ -1663,6 +1666,7 @@ static int Incremental_container(struct supertype *st, char *devname, close(sfd); } domain_free(domains); + map_free(map); return 0; } |