aboutsummaryrefslogtreecommitdiff
path: root/src/apps
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps')
-rw-r--r--src/apps/optargpm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apps/optargpm.h b/src/apps/optargpm.h
index e7f4f8e5..f293ad98 100644
--- a/src/apps/optargpm.h
+++ b/src/apps/optargpm.h
@@ -526,6 +526,7 @@ OPTARGS *opt_parse (int argc, char **argv, const char *flags, const char *keys,
c = opt_ordinal (o, crepr);
if (0==c) {
fprintf (stderr, "Invalid option \"%s\"\n", crepr);
+ free (o);
return nullptr;
}