Explorar el Código

small changes to memory stuffs to hopefully not fail

tarfeef101 hace 7 años
padre
commit
6c05680a6b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
   }