ソースを参照

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;
   }