From f0b37cad0b9c0bcb87483b60eb5975a81e5a79bf Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 6 Apr 2020 08:32:40 +0000 Subject: [PATCH] ex-1: fix leak in meadian boostrapping --- ex-1/bootstrap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ex-1/bootstrap.c b/ex-1/bootstrap.c index 7d380f8..e033941 100644 --- a/ex-1/bootstrap.c +++ b/ex-1/bootstrap.c @@ -140,6 +140,7 @@ uncert bootstrap_median( median.s = gsl_stats_sd(values, 1, boots); // free memory + gsl_rstat_free(w); free(values); return median;