From 2a4b4d40cd81390d46302a62ec1929607d169c27 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sat, 20 Jun 2020 09:17:56 +0200 Subject: [PATCH 19/21] python: return NULL if get_list_of_strings() fails (#44287) --- bindings/python/wrapper_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index 266fa28c..b76a7dd5 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -476,7 +476,7 @@ get_list_of_strings(const GList *a_list) { failure: PyErr_SetString(PyExc_TypeError, "Allocation problem in get_list_of_strings"); Py_XDECREF(a_tuple); - return noneRef(); + return NULL; } static PyObject * -- 2.26.2