diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2018-12-20 10:49:57 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-12-20 10:55:17 +0000 |
commit | 47ae705f3967181640f1c7e0828639ecec07a6d7 (patch) | |
tree | 702f30b84706b0712318175253cadf2cf9c5df6d | |
parent | bbef2a87ffc7252fe793f123460569d47b0debaf (diff) |
snort: Fix a memory leak on error
Change-Id: Icb90e749ec9ee4e6575e77519744b43bce6235a6
Reviewed-on: https://code.wireshark.org/review/31143
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | epan/dissectors/snort-config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/snort-config.c b/epan/dissectors/snort-config.c index 1c3d85fa34..acc1c656c4 100644 --- a/epan/dissectors/snort-config.c +++ b/epan/dissectors/snort-config.c @@ -751,6 +751,7 @@ static gboolean parse_rule(SnortConfig_t *snort_config, char *line, const char * options_start = strstr(line, "("); if (options_start == NULL) { snort_debug_printf("start of options not found\n"); + g_free(rule); return FALSE; } options_index = (int)(options_start-line) + 1; |