aboutsummaryrefslogtreecommitdiffstats
path: root/test/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test/test.c')
-rw-r--r--test/test/test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test/test.c b/test/test/test.c
index 24df6299..12fabd0b 100644
--- a/test/test/test.c
+++ b/test/test/test.c
@@ -102,8 +102,10 @@ main(int argc, char **argv)
/* merge argc/argv and the environment args */
all_argc = argc + eargc;
all_argv = malloc(sizeof(*all_argv) * (all_argc + 1));
- if (all_argv == NULL)
- return -1;
+ if (all_argv == NULL) {
+ ret = -1;
+ goto out;
+ }
for (i = 0; i < argc; i++)
all_argv[i] = argv[i];