magic-elimination.patch from patch #6230.
[pspp-builds.git] / src / language / stats / examine.q
index d9b9bece6fbc79dca18519859325beae4332052b..acf14e394dddbdf2968ebf065d6302001b04ec3c 100644 (file)
@@ -35,7 +35,6 @@
 #include <libpspp/alloc.h>
 #include <libpspp/compiler.h>
 #include <libpspp/hash.h>
-#include <libpspp/magic.h>
 #include <libpspp/message.h>
 #include <libpspp/misc.h>
 #include <libpspp/str.h>
@@ -720,7 +719,10 @@ run_examine (struct cmd_examine *cmd, struct casereader *input,
   struct factor *fctr;
 
   if (!casereader_peek (input, 0, &c))
-    return;
+    {
+      casereader_destroy (input);
+      return;
+    }
   output_split_file_values (ds, &c);
   case_destroy (&c);