libselinux/libselinux-rhat.patch
Daniel J Walsh 3371166078 - update to latest libsetrans
- Fix potential memory leak
2005-12-13 20:44:36 +00:00

18 lines
578 B
Diff

diff --exclude-from=exclude -N -u -r nsalibselinux/src/init.c libselinux-1.29.1/src/init.c
--- nsalibselinux/src/init.c 2005-10-06 12:31:32.000000000 -0400
+++ libselinux-1.29.1/src/init.c 2005-12-13 15:39:22.000000000 -0500
@@ -118,6 +118,13 @@
#ifdef SHARED
context_translations = 0;
if (translation_lib_handle) {
+ int (*lib_trans_finish)(void) = NULL;
+
+ lib_trans_finish = dlsym(translation_lib_handle,
+ "finish_context_translations");
+ if (! dlerror())
+ lib_trans_finish();
+
dlclose(translation_lib_handle);
translation_lib_handle = NULL;
}