Skip to content

Commit

Permalink
Add missing incref call
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpvorderman committed Apr 5, 2024
1 parent ad6a045 commit e42d493
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zlib_ng/zlib_ngmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3061,6 +3061,7 @@ PyInit_zlib_ng(void)
ver = PyUnicode_FromString("1.2.12");
if (ver!= NULL) {
PyModule_AddObject(m, "ZLIB_VERSION", ver);
Py_INCREF(ver);
PyModule_AddObject(m, "ZLIB_RUNTIME_VERSION", ver);
}

Expand Down

0 comments on commit e42d493

Please sign in to comment.