Skip to content

Commit c6f0262

Browse files
committed
add missing decref
1 parent fd500a6 commit c6f0262

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

asciidtype/asciidtype/src/dtype.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ get_value(PyObject *scalar)
2121
PyObject *res_bytes = PyUnicode_AsASCIIString(value);
2222
Py_DECREF(value);
2323
char *res = PyBytes_AsString(res_bytes);
24+
Py_DECREF(res_bytes);
2425
if (res == NULL) {
2526
return NULL;
2627
}

0 commit comments

Comments
 (0)