resetting old scheduling policy correctly in free() hook
[strongswan.git] / src / libstrongswan / utils / leak_detective.c
index aa9e616..b979c40 100644 (file)
@@ -463,7 +463,7 @@ void free_hook(void *ptr, const void *caller)
        }
        
        install_hooks();
-       pthread_setschedparam(thread_id, oldpolicy, &params);
+       pthread_setschedparam(thread_id, oldpolicy, &oldparams);
 }
 
 /**