summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/srd.c b/srd.c
index 248d8e5..22f47fc 100644
--- a/srd.c
+++ b/srd.c
@@ -172,6 +172,7 @@ static int print_searchpaths(void)
py_path = PyList_GetItem(py_paths, i);
py_bytes = PyUnicode_AsUTF8String(py_path);
g_string_append_printf(s, " - %s\n", PyBytes_AsString(py_bytes));
+ Py_DECREF(py_bytes);
}
s->str[s->len - 1] = '\0';
srd_dbg("%s", s->str);