History

python/ext/py-{source,sink}.c: free string uri

Paul Brossier committed 9 years ago

Commit 4f891541 parent b8cedb62 files · +6 −0Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/ext/py-sink.c +3 −0
  2. python/ext/py-source.c +3 −0
python/ext/py-sink.c+3−0
@@ -127,6 +127,9 @@ Py_sink_del (Py_sink *self, PyObject *unused) · 126 unmodified lines
127{127{
128 del_aubio_sink(self->o);128 del_aubio_sink(self->o);
129 free(self->mwrite_data.data);129 free(self->mwrite_data.data);
130 if (self->uri) {
131 free(self->uri);
132 }
130 Py_TYPE(self)->tp_free((PyObject *) self);133 Py_TYPE(self)->tp_free((PyObject *) self);
131}134}
132 135
python/ext/py-source.c+3−0
@@ -164,6 +164,9 @@ Py_source_del (Py_source *self, PyObject *unused) · 163 unmodified lines
164 del_aubio_source(self->o);164 del_aubio_source(self->o);
165 free(self->c_mread_to.data);165 free(self->c_mread_to.data);
166 }166 }
167 if (self->uri) {
168 free(self->uri);
169 }
167 Py_XDECREF(self->read_to);170 Py_XDECREF(self->read_to);
168 Py_XDECREF(self->mread_to);171 Py_XDECREF(self->mread_to);
169 Py_TYPE(self)->tp_free((PyObject *) self);172 Py_TYPE(self)->tp_free((PyObject *) self);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t