summaryrefslogtreecommitdiff
path: root/unpack/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'unpack/options.c')
-rw-r--r--unpack/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unpack/options.c b/unpack/options.c
index ccfe7c8..84c17cf 100644
--- a/unpack/options.c
+++ b/unpack/options.c
@@ -124,6 +124,8 @@ void process_command_line(options_t *opt, int argc, char **argv)
break;
case 'd':
opt->op = OP_DESCRIBE;
+ free(opt->cmdpath);
+ opt->cmdpath = NULL;
break;
case 'l':
opt->op = OP_LS;