resetting old scheduling policy correctly in free() hook
authorMartin Willi <martin@strongswan.org>
Mon, 5 May 2008 07:40:21 +0000 (07:40 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 5 May 2008 07:40:21 +0000 (07:40 -0000)
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);
 }
 
 /**