History

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

Paul Brossier committed 10 years ago

Commit 8cf51c41 parent ad9f9991 file · +3 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/ext/py-phasevoc.c+3−1
@@ -84,7 +84,9 @@ Py_pvoc_del (Py_pvoc *self, PyObject *unused) · 83 unmodified lines
8484 {
8585 Py_XDECREF(self->output);
8686 Py_XDECREF(self->routput);
87− del_aubio_pvoc(self->o);
87+ if (self->o) {
88+ del_aubio_pvoc(self->o);
89+ }
8890 Py_TYPE(self)->tp_free((PyObject *) self);
8991 }
9092

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