mirror of
https://github.com/github/codeql.git
synced 2026-03-31 20:58:16 +02:00
10 lines
197 B
C++
10 lines
197 B
C++
int* f() {
|
|
try {
|
|
int *buff = malloc(SIZE*sizeof(int));
|
|
do_stuff(buff);
|
|
return buff;
|
|
} catch (int do_stuff_exception) {
|
|
return NULL; //returns NULL on error, but does not free memory
|
|
}
|
|
}
|