mirror of
https://github.com/github/codeql.git
synced 2025-12-24 20:56:33 +01: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
|
|
}
|
|
}
|