Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit dd528f9

Browse files
committed
Deletes early return in the ext_decode native method
That early return could provoke the buffer not being released Signed-off-by: ncordon <nacho.cordon.castillo@gmail.com>
1 parent bebc005 commit dd528f9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bblfsh/pyuast.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <cstdlib>
33
#include <cstring>
44
#include <unordered_map>
5-
#include <iostream>
5+
66
#include <Python.h>
77
#include <structmember.h>
88

@@ -1057,7 +1057,6 @@ static PyObject *PythonContextExt_decode(PyObject *self, PyObject *args, PyObjec
10571057

10581058
if (!pyU) {
10591059
delete(ctx);
1060-
return nullptr;
10611060
} else {
10621061
pyU->p = new ContextExt(ctx);
10631062
}

0 commit comments

Comments
 (0)