fix heap leaks in test app
Signed-off-by: Aidan Hahn <aidan@aidanis.online>
This commit is contained in:
parent
8dca2bac04
commit
b7bedc76ff
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue