Skip to content

Commit 2e555c7

Browse files
committed
capture_filter: _destroy instead of free on err
CID 472158
1 parent d7f9924 commit 2e555c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/capture_filter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ int capture_filter_init(struct module *parent, const char *cfg, struct capture_f
133133

134134
int ret = create_filter(s, filter_name);
135135
if (ret != 0) {
136-
module_done(&s->mod);
137136
free(tmp);
138-
free(s);
137+
capture_filter_destroy(s);
139138
return ret;
140139
}
141140
filter_list_str = NULL;

0 commit comments

Comments
 (0)