Skip to content

Commit a9b1e01

Browse files
committed
fix double free
1 parent ffa3de0 commit a9b1e01

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/dukpyjs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ static PyObject *DukPy_eval_string(PyObject *self, PyObject *args) {
161161

162162
if (JS_IsUndefined(json_result)) {
163163
JS_FreeValue(ctx, json_result);
164-
JS_FreeValue(ctx, eval_result);
165164
Py_XDECREF(pyctx);
166165
PyErr_SetString(DukPyError, "Invalid Result Value");
167166
return NULL;

0 commit comments

Comments
 (0)