examples/example2.cpp
#include <stdlib.h>
int main() {
int *pi;
int i;
#ifdef DUMA_EXPLICIT_INIT
duma_init();
#endif
pi = (int *)malloc(10 * sizeof(int));
for (i = 0; i < 10; ++i)
pi[i] = i;
return 0;
// pi is not freed
// that should produce a memory leak
// without information on allocation source without including duma.h
}