Skip to content

Commit

Permalink
Add regression test for a memory leak with quick_exit()
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstanb committed Aug 11, 2023
1 parent b9cef72 commit 755e4ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/regression/76-memleak/07-simple-quick-exit-mem-leak.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//PARAM: --set ana.malloc.unique_address_count 1 --set ana.activated[+] memLeak
#include <stdlib.h>

int main(int argc, char const *argv[]) {
int *p = malloc(sizeof(int));
quick_exit(0); //WARN
}

0 comments on commit 755e4ee

Please sign in to comment.