mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-08 08:26:14 +00:00
15 lines
211 B
C
15 lines
211 B
C
#include <stdlib.h>
|
|
|
|
static void test()
|
|
{
|
|
void* leak __attribute__((unused));
|
|
int i;
|
|
for (i = 0; i < 1000; i++)
|
|
leak = (void*)malloc( 1 );
|
|
}
|
|
int main()
|
|
{
|
|
test();
|
|
return 0;
|
|
}
|