shithub: aubio

Download patch

ref: 8cf51c47c0961a10a5f7eecb9c20209f101137e2
parent: ad9f999045fe02e5bc056f63c8f641bc54b24ba8
author: Paul Brossier <piem@piem.org>
date: Tue May 10 19:21:37 EDT 2016

python/ext/py-phasevoc.c: make sure to avoid double free

--- a/python/ext/py-phasevoc.c
+++ b/python/ext/py-phasevoc.c
@@ -84,7 +84,9 @@
 {
   Py_XDECREF(self->output);
   Py_XDECREF(self->routput);
-  del_aubio_pvoc(self->o);
+  if (self->o) {
+    del_aubio_pvoc(self->o);
+  }
   Py_TYPE(self)->tp_free((PyObject *) self);
 }