diff options
author | Till Kamppeter <till.kamppeter@gmail.com> | 2012-07-02 17:13:59 +0200 |
---|---|---|
committer | Till Kamppeter <till.kamppeter@gmail.com> | 2012-07-02 17:13:59 +0200 |
commit | 112cca846d8b08d08e13afce71cb0443d3ec60f5 (patch) | |
tree | a9a149cef64705dcb8da6daa9ce5a0d546ead148 /options.c | |
parent | ca7afd6b61bfd6d390ca91dc4b91c0943145e307 (diff) |
Imported Upstream version 4.0.17upstream/4.0.17
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |