diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-11-15 14:40:10 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-11-15 14:40:10 +0100 |
commit | 26d18f4efb4b03b000105d4668081a40861a6a48 (patch) | |
tree | 19ef831a37151be2998e6c1cb989b3b73e7c4210 | |
parent | 42353849cb144a5310c7153147d1624b1593ce8d (diff) | |
download | strongswan-26d18f4efb4b03b000105d4668081a40861a6a48.tar.bz2 strongswan-26d18f4efb4b03b000105d4668081a40861a6a48.tar.xz |
sw-collector: Unmap history file on failure to instantiate extractor
-rw-r--r-- | src/sw-collector/sw-collector.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sw-collector/sw-collector.c b/src/sw-collector/sw-collector.c index e673dd657..a42f1068a 100644 --- a/src/sw-collector/sw-collector.c +++ b/src/sw-collector/sw-collector.c @@ -249,6 +249,7 @@ static int extract_history(sw_collector_db_t *db) history = sw_collector_history_create(db, 1); if (!history) { + chunk_unmap(h); return EXIT_FAILURE; } |