ref: 4f891542a563b6ca406ca18979a8343ab534df21
parent: b8cedb62aba829cc1114b4df1d8cb16b42aa2374
author: Paul Brossier <piem@piem.org>
date: Mon Feb 27 05:29:15 EST 2017
python/ext/py-{source,sink}.c: free string uri
--- a/python/ext/py-sink.c
+++ b/python/ext/py-sink.c
@@ -127,6 +127,9 @@
{
del_aubio_sink(self->o);
free(self->mwrite_data.data);
+ if (self->uri) {
+ free(self->uri);
+ }
Py_TYPE(self)->tp_free((PyObject *) self);
}
--- a/python/ext/py-source.c
+++ b/python/ext/py-source.c
@@ -164,6 +164,9 @@
del_aubio_source(self->o);
free(self->c_mread_to.data);
}
+ if (self->uri) {
+ free(self->uri);
+ }
Py_XDECREF(self->read_to);
Py_XDECREF(self->mread_to);
Py_TYPE(self)->tp_free((PyObject *) self);