sw-collector: Unmap history file on failure to instantiate extractor

This commit is contained in:
Tobias Brunner 2017-11-15 14:40:10 +01:00
parent 42353849cb
commit 26d18f4efb
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}