summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstore/remap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstore/remap.c b/libstore/remap.c
index 5841457b..aa7c4580 100644
--- a/libstore/remap.c
+++ b/libstore/remap.c
@@ -215,6 +215,7 @@ store_remap (struct store *source,
source->num_runs = num_xruns;
source->flags &= ~STORE_ENFORCED;
source->end = 0; /* Needed to make _store_derive work. */
+ store_close_source (source);
_store_derive (source);
*store = source;
}