Fix memory leak in sweep.c
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 30 Sep 2010 08:59:05 +0000 (10:59 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 30 Sep 2010 09:11:15 +0000 (11:11 +0200)
lib/linreg/sweep.c

index 0dfa71fb6ac0468bcf058763d1894c5e25c287fc..b72d24a7edfebfba71201b28a34d13a374c08804 100644 (file)
@@ -169,8 +169,8 @@ reg_sweep (gsl_matrix * A, int last_col)
                  }
            }
          gsl_matrix_free (B);
-         return GSL_SUCCESS;
          free (ordered_cols);
+         return GSL_SUCCESS;
        }
       return GSL_ENOTSQR;
     }