From: Victor Julien Date: Tue, 23 Oct 2018 11:06:42 +0000 (+0200) Subject: coverity: fix filestore v2 memleak X-Git-Tag: suricata-4.1.0~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f97bf298b2ab28d0c4de4916c085bc403415136e;p=thirdparty%2Fsuricata.git coverity: fix filestore v2 memleak --- diff --git a/src/output-filestore.c b/src/output-filestore.c index 737241fae2..2ce3d9dd65 100644 --- a/src/output-filestore.c +++ b/src/output-filestore.c @@ -223,6 +223,7 @@ static int OutputFilestoreLogger(ThreadVars *tv, void *thread_data, if (FileGetMaxOpenFiles() > 0) { StatsIncr(tv, aft->counter_max_hits); } + ff->fd = -1; } /* we can get called with a NULL ffd when we need to close */ } else if (data != NULL) {