From: Tobias Brunner Date: Wed, 15 Nov 2017 13:40:10 +0000 (+0100) Subject: sw-collector: Unmap history file on failure to instantiate extractor X-Git-Tag: 5.6.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d18f4efb4b03b000105d4668081a40861a6a48;p=thirdparty%2Fstrongswan.git sw-collector: Unmap history file on failure to instantiate extractor --- diff --git a/src/sw-collector/sw-collector.c b/src/sw-collector/sw-collector.c index e673dd6572..a42f1068ae 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; }