aboutsummaryrefslogtreecommitdiffstats
path: root/litmus
diff options
context:
space:
mode:
Diffstat (limited to 'litmus')
-rw-r--r--litmus/litmus.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/litmus/litmus.c b/litmus/litmus.c
index 10e45b7bbecc..ab0bcac13252 100644
--- a/litmus/litmus.c
+++ b/litmus/litmus.c
@@ -376,8 +376,10 @@ long litmus_admit_task(struct task_struct* tsk)
376 376
377out: 377out:
378 if (retval) { 378 if (retval) {
379 bheap_node_free(tsk_rt(tsk)->heap_node); 379 if (tsk_rt(tsk)->heap_node)
380 release_heap_free(tsk_rt(tsk)->rel_heap); 380 bheap_node_free(tsk_rt(tsk)->heap_node);
381 if (tsk_rt(tsk)->rel_heap)
382 release_heap_free(tsk_rt(tsk)->rel_heap);
381 } 383 }
382 return retval; 384 return retval;
383} 385}