This commit is contained in:
mugitya03 2025-04-29 16:20:43 +00:00 committed by GitHub
commit 549d19e0cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -693,7 +693,8 @@ static PyObject *elffile_secbyidx(struct elffile *w, Elf_Scn *scn, size_t idx)
}
ret = w->sects[idx];
Py_INCREF(ret);
if (ret)
Py_INCREF(ret);
return ret;
}