]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
coverity: fix filestore v2 memleak
authorVictor Julien <victor@inliniac.net>
Tue, 23 Oct 2018 11:06:42 +0000 (13:06 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 30 Oct 2018 09:21:34 +0000 (10:21 +0100)
src/output-filestore.c

index 737241fae2fc1e8e0c9a8911d347eaecda19dcc1..2ce3d9dd65061891f46696ceabf88d9fd58ccb0f 100644 (file)
@@ -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) {