diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index 33c7be3..177e11d 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -1,9 +1,9 @@ -# Build from source using tox. -name: build_tox +# Build wheel from source using tox. +name: build_wheel on: [push, pull_request] permissions: read-all jobs: - build_tox: + build_wheel: runs-on: ubuntu-22.04 strategy: matrix: diff --git a/pylnk/pylnk_file_object_io_handle.c b/pylnk/pylnk_file_object_io_handle.c index 7c9185b..d48910a 100644 --- a/pylnk/pylnk_file_object_io_handle.c +++ b/pylnk/pylnk_file_object_io_handle.c @@ -232,13 +232,13 @@ int pylnk_file_object_io_handle_free( Py_DecRef( ( *file_object_io_handle )->file_object ); - PyGILState_Release( - gil_state ); - PyMem_Free( *file_object_io_handle ); *file_object_io_handle = NULL; + + PyGILState_Release( + gil_state ); } return( 1 ); } diff --git a/pylnk/pylnk_string.c b/pylnk/pylnk_string.c index 2a68e86..9fe4836 100644 --- a/pylnk/pylnk_string.c +++ b/pylnk/pylnk_string.c @@ -164,16 +164,6 @@ PyObject *pylnk_string_new_from_utf8_rfc2279( goto on_error; } } - if( PyUnicode_READY( - string_object ) == -1 ) - { - PyErr_Format( - PyExc_RuntimeError, - "%s: unable to finalize string object.", - function ); - - goto on_error; - } PyMem_Free( utf32_string );