X-Git-Url: http://git.tuebingen.mpg.de/?p=lopsub.git;a=blobdiff_plain;f=lopsub.c;h=44abc93348c7b6e4120caeeea620c0f6504d46bb;hp=55ea6ac56253e0705e551780271acb9be859ea25;hb=3daf86d883abadef69583109aace38677e946cca;hpb=a1a679403ccafb26fe91c52cc4065e9e6524c09d diff --git a/lopsub.c b/lopsub.c index 55ea6ac..44abc93 100644 --- a/lopsub.c +++ b/lopsub.c @@ -651,7 +651,7 @@ static int lls_parse_arg(struct lls_arg *la, const struct lls_option *opts, } switch (opt->arg_type) { case LLS_STRING: - if (lor->given > 0 && !multiple) + if (!opt->values && lor->given > 0 && !multiple) free(lor->value[idx].string_val); if (opt->values) { ret = check_enum_arg(la->arg, opt, errctx);