aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 6980c4b7..4b12194c 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -849,7 +849,7 @@ int main(int argc, char *argv[])
ERROR("Failed to open input file '%s'\n", args.filename);
return 1;
}
- free(args.filename);
+
/* Check prefix (if given) */
if ( args.check_prefix ) {
@@ -996,7 +996,11 @@ int main(int argc, char *argv[])
taketwo_opts,
xgandalf_opts,
pinkindexer_opts,
- felix_opts);
+ felix_opts,
+ args.filename);
+
+ free(args.filename);
+
if ( args.iargs.ipriv == NULL ) {
ERROR("Failed to set up indexing system\n");
return 1;