Continue work on bug 12859, plus some code cleanup.
[pspp-builds.git] / src / str.c
index 2a766520b135f8d01b01b7ca0a638c589fe459de..56b0491eec793656b4bddd6438414ca0d7ad49dd 100644 (file)
--- a/src/str.c
+++ b/src/str.c
@@ -306,6 +306,7 @@ void
 ds_destroy (struct string *st)
 {
   free (st->string);
+  st->string = NULL;x
 }
 
 /* Truncates ST to zero length. */