Merge remote branch 'origin/master' into import-gui
[pspp] / src / language / stats / chisquare.c
index 10d81132715552b7ccaad1d96ad2587cf20988ac..2b5864ee1ef7ba3a970971d8c06878c4f126f760 100644 (file)
@@ -88,6 +88,8 @@ create_freq_hash_with_range (const struct dictionary *dict,
         }
     }
 
+  free (entries);
+
   return casereader_destroy (input);
 }
 
@@ -152,6 +154,7 @@ create_variable_frequency_table (const struct dictionary *dict,
          test->n_expected, n_cells,
          var_get_name (var)
          );
+      freq_hmap_destroy (freq_hash, var_get_width (var));
       return NULL;
     }