fix heap leaks in test app

Signed-off-by: Aidan Hahn <aidan@aidanis.online>
This commit is contained in:
Aidan Hahn 2022-03-06 23:46:03 -08:00
parent 8dca2bac04
commit b7bedc76ff
No known key found for this signature in database
GPG key ID: 327711E983899316

View file

@ -56,6 +56,11 @@ int main() {
perror("cannot increment semaphore"); perror("cannot increment semaphore");
return 1; return 1;
} }
// clean up
sem_close(sem);
deinit_alog();
// parent process // parent process
} else { } else {
// we can do checks from here // we can do checks from here