From a9b7c6009b95c0b3d4b076e74c7fc30ad145dbd9 Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Tue, 23 Jan 2018 18:01:43 +0000
Subject: [PATCH] Need to make sure xparts are not freed when not used as well

---
 src/space.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/space.c b/src/space.c
index f16d031b37..ec7676fb59 100644
--- a/src/space.c
+++ b/src/space.c
@@ -3296,6 +3296,7 @@ void space_struct_restore(struct space *s, FILE *stream) {
 
   /* More things to read. */
   s->parts = NULL;
+  s->xparts = NULL;
   if (s->nr_parts > 0) {
 
     /* Need the memory for these. */
-- 
GitLab