aboutsummaryrefslogtreecommitdiff
path: root/lib/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/args.c')
-rw-r--r--lib/args.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/args.c b/lib/args.c
index 80ad4b66..1b69466e 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -223,8 +223,7 @@ void parse_optflaglist(struct getoptflagstate *gof)
if (CFG_TOYBOX_DEBUG && !*end)
error_exit("(longopt) didn't end");
- // Allocate and init a new struct longopts
- lo = xmalloc(sizeof(struct longopts));
+ // init a new struct longopts
lo->next = gof->longopts;
lo->opt = new;
lo->str = options;