LOGISTIC REGRESSION: Fix memory leak in error path
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 26 Jun 2013 07:31:13 +0000 (09:31 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 26 Jun 2013 07:31:13 +0000 (09:31 +0200)
src/language/stats/logistic.c

index b3cf843400f6460b077de5b396e2e7c10cada8d1..eb200fe37889c54c04596068614167735faa13d1 100644 (file)
@@ -523,6 +523,7 @@ initial_pass (const struct lr_spec *cmd, struct lr_result *res, struct casereade
              )
            {
              msg (ME, _("Dependent variable's values are not dichotomous."));
+              case_unref (c);
              goto error;
            }
        }