From 12b467e49ea6f8fea0d67da02abd7ffa88e7c1f3 Mon Sep 17 00:00:00 2001 From: Wang Rui <55612496+wr-web@users.noreply.github.com> Date: Sun, 10 May 2026 14:29:46 +0800 Subject: [PATCH] Fix reference counting for PyList_SetItem --- ffmpeg/jni/libxml2/python/libxml.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ffmpeg/jni/libxml2/python/libxml.c b/ffmpeg/jni/libxml2/python/libxml.c index 5b1ff6e89..fa61ce616 100644 --- a/ffmpeg/jni/libxml2/python/libxml.c +++ b/ffmpeg/jni/libxml2/python/libxml.c @@ -1325,7 +1325,6 @@ pythonAttributeDecl(void *user_data, for (node = tree; node != NULL; node = node->next) { newName = PY_IMPORT_STRING((char *) node->name); PyList_SetItem(nameList, count, newName); - Py_DECREF(newName); count++; } result = PyObject_CallMethod(handler, (char *) "attributeDecl",