ref: fb0afbb02fe0fc7f0bc3f8e9c1c67bfa6b8e0419
parent: 213bf0fc770ef5a7f4184f6fbed11e4235dacab8
author: Paul Brossier <piem@piem.org>
date: Thu Dec 6 06:46:46 EST 2018
[hist] fix potential memory leak
--- a/src/utils/hist.c
+++ b/src/utils/hist.c
@@ -44,6 +44,7 @@
smpl_t accum = step;
uint_t i;
if ((sint_t)nelems <= 0) {
+ AUBIO_FREE(s);
return NULL;
}
s->nelems = nelems;