From b8e48931f972d868f80f9495dbb461d0843c76be Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 19 Oct 2023 13:28:32 +0100 Subject: [PATCH] Revert "Fix segfault with error report in FITS compression" This reverts commit 4de4877bc31602b073e88d3181c51bb3943c65ed. --- astropy/io/fits/hdu/compressed/src/compression.c | 3 --- docs/changes/io.fits/15489.bugfix.rst | 1 - 2 files changed, 4 deletions(-) delete mode 100644 docs/changes/io.fits/15489.bugfix.rst diff --git a/astropy/io/fits/hdu/compressed/src/compression.c b/astropy/io/fits/hdu/compressed/src/compression.c index e3d9b656a0d3..bcedabec0a19 100644 --- a/astropy/io/fits/hdu/compressed/src/compression.c +++ b/astropy/io/fits/hdu/compressed/src/compression.c @@ -90,10 +90,7 @@ PyInit__compression(void) // cfitsio call. In our wrapper functions we can then check if the Python error // state is set and then return NULL to raise the error. void ffpmsg(const char *err_message) { - PyGILState_STATE gstate; - gstate = PyGILState_Ensure(); PyErr_SetString(CfitsioException, err_message); - PyGILState_Release(gstate); } /* PLIO/IRAF compression */ diff --git a/docs/changes/io.fits/15489.bugfix.rst b/docs/changes/io.fits/15489.bugfix.rst deleted file mode 100644 index fa41152973b6..000000000000 --- a/docs/changes/io.fits/15489.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix segfault with error report in tile decompression.