Minor synchronization fix
parent
e1df67a0fe
commit
b7df2713a6
3
herbe.c
3
herbe.c
|
|
@ -174,7 +174,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
sem_post(mutex);
|
sem_post(mutex);
|
||||||
sem_close(mutex);
|
sem_close(mutex);
|
||||||
sem_unlink("/herbe");
|
|
||||||
|
|
||||||
for (int i = 0; i < num_of_lines; i++)
|
for (int i = 0; i < num_of_lines; i++)
|
||||||
free(words[i]);
|
free(words[i]);
|
||||||
|
|
@ -186,4 +185,4 @@ int main(int argc, char *argv[])
|
||||||
XCloseDisplay(display);
|
XCloseDisplay(display);
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue