Skip to content

Commit

Permalink
Worked on Python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Sep 28, 2023
1 parent 2ca55f4 commit a537dfb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
*.trs
*.whl
/*.egg-info/
__pycache__
.deps
.dirstamp
.libs
.tox
__pycache__
INSTALL
Makefile
Makefile.bcc
Expand Down
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[liblnk],
[20230731],
[20230928],
[[email protected]])

AC_CONFIG_SRCDIR(
Expand Down Expand Up @@ -203,7 +203,6 @@ AC_CONFIG_FILES([dpkg/changelog])
AC_CONFIG_FILES([liblnk/liblnk.rc])
AC_CONFIG_FILES([liblnk.pc])
AC_CONFIG_FILES([liblnk.spec])
AC_CONFIG_FILES([setup.cfg])
dnl Generate a source configuration file
AC_CONFIG_HEADERS([common/config.h])

Expand Down
4 changes: 2 additions & 2 deletions liblnk.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<package >
<metadata>
<id>liblnk</id>
<version>20230731</version>
<version>20230928</version>
<authors>Joachim Metz</authors>
<owners>joachimmetz</owners>
<license type="expression">LGPL-3.0-or-later</license>
<projectUrl>https://github.com/libyal/liblnk</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<title>liblnk</title>
<description>Library to access the Windows Shortcut File (LNK) format</description>
<releaseNotes>Release of liblnk 20230731</releaseNotes>
<releaseNotes>Release of liblnk 20230928</releaseNotes>
<copyright>Copyright (C) 2009-2023</copyright>
<tags>native</tags>
</metadata>
Expand Down
8 changes: 1 addition & 7 deletions pylnk/pylnk_file_object_io_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ int pylnk_file_object_io_handle_free(
pylnk_file_object_io_handle_t **file_object_io_handle,
libcerror_error_t **error )
{
static char *function = "pylnk_file_object_io_handle_free";
PyGILState_STATE gil_state = 0;
static char *function = "pylnk_file_object_io_handle_free";

if( file_object_io_handle == NULL )
{
Expand All @@ -227,18 +226,13 @@ int pylnk_file_object_io_handle_free(
}
if( *file_object_io_handle != NULL )
{
gil_state = PyGILState_Ensure();

Py_DecRef(
( *file_object_io_handle )->file_object );

PyMem_Free(
*file_object_io_handle );

*file_object_io_handle = NULL;

PyGILState_Release(
gil_state );
}
return( 1 );
}
Expand Down

0 comments on commit a537dfb

Please sign in to comment.