Преглед изворни кода

small changes to memory stuffs to hopefully not fail

tarfeef101 пре 6 година
родитељ
комит
6c05680a6b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      kern/synchprobs/traffic_synch.c

+ 1 - 1
kern/synchprobs/traffic_synch.c

@@ -132,7 +132,7 @@ static void dellist(list * dead)
   while (temp)
   {
     car * temp2 = temp->next;
-    cv_destroy(temp->cv);
+    if (temp->cv) cv_destroy(temp->cv);
     kfree(temp);
     temp = temp2;
   }