summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2012-07-02 17:13:59 +0200
committerTill Kamppeter <till.kamppeter@gmail.com>2012-07-02 17:13:59 +0200
commit112cca846d8b08d08e13afce71cb0443d3ec60f5 (patch)
treea9a149cef64705dcb8da6daa9ce5a0d546ead148 /options.c
parentca7afd6b61bfd6d390ca91dc4b91c0943145e307 (diff)
Imported Upstream version 4.0.17upstream/4.0.17
Diffstat (limited to 'options.c')
-rw-r--r--options.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/options.c b/options.c
index d14c287..6f08a0f 100644
--- a/options.c
+++ b/options.c
@@ -690,8 +690,10 @@ char * paramvalues_to_string(option_t *opt, char **paramvalues)
dstr_t *res = create_dstr();
char *data;
- if (opt->param_count < 1)
+ if (opt->param_count < 1) {
+ free (res);
return NULL;
+ }
if (opt->param_count == 1) {
param = opt->paramlist;