projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
213bf0f
)
[hist] fix potential memory leak
author
Paul Brossier
<piem@piem.org>
Thu, 6 Dec 2018 10:46:46 +0000
(11:46 +0100)
committer
Paul Brossier
<piem@piem.org>
Thu, 6 Dec 2018 10:46:46 +0000
(11:46 +0100)
src/utils/hist.c
patch
|
blob
|
history
diff --git
a/src/utils/hist.c
b/src/utils/hist.c
index
e0e2486
..
2dcc443
100644
(file)
--- a/
src/utils/hist.c
+++ b/
src/utils/hist.c
@@
-44,6
+44,7
@@
aubio_hist_t * new_aubio_hist (smpl_t flow, smpl_t fhig, uint_t nelems){
smpl_t accum = step;
uint_t i;
if ((sint_t)nelems <= 0) {
+ AUBIO_FREE(s);
return NULL;
}
s->nelems = nelems;