projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ac60f4
)
filter_chain(): Fix memory leak in parse_filter_args
author
Andre Noll
<maan@systemlinux.org>
Sun, 11 Feb 2007 22:47:57 +0000
(23:47 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sun, 11 Feb 2007 22:47:57 +0000
(23:47 +0100)
Same bug as in parse_receiver_args(): argv must be freed (see previous patch).
filter_chain.c
patch
|
blob
|
history
diff --git
a/filter_chain.c
b/filter_chain.c
index 8a41beda94acc29f3f9650d6d0afee7d265f6095..285cfca9530220225cf8a7f41cae953d92994737 100644
(file)
--- a/
filter_chain.c
+++ b/
filter_chain.c
@@
-222,6
+222,7
@@
static int parse_filter_args(int filter_num, char *options, void **conf)
argv[0] = para_strdup(f->name);
argc += 1;
*conf = f->parse_config(argc, argv);
+ free(argv);
return *conf? filter_num : -E_BAD_FILTER_OPTIONS;
}