diff options
author | Till Kamppeter <till.kamppeter@gmail.com> | 2012-07-02 17:14:00 +0200 |
---|---|---|
committer | Till Kamppeter <till.kamppeter@gmail.com> | 2012-07-02 17:14:00 +0200 |
commit | e66690ff88df2392e4ea508529aa065ee75ed57a (patch) | |
tree | 6f71a5a8f53f4f860bb57cfac291c3ee5e74decf /options.c | |
parent | 636ded7690496b03ba82d43473666d7fb3358a8f (diff) | |
parent | 112cca846d8b08d08e13afce71cb0443d3ec60f5 (diff) |
Merge tag 'upstream/4.0.17'
Upstream version 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; |