Fix numerous memory leaks.
[pspp] / src / language / stats / oneway.c
index ef20cbafbf1135810df8bf1bfdd0d5dbe714aa46..7f28b75b8a45098de84fb736d452642e0ffdde59 100644 (file)
@@ -551,7 +551,10 @@ cmd_oneway (struct lexer *lexer, struct dataset *ds)
            }
 
          if ( ll_count (coefficient_list) <= 0)
-           goto error;
+            {
+              destroy_coeff_list (cl);
+              goto error;
+            }
 
          ll_push_tail (&oneway.contrast_list, &cl->ll);
        }