mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-11 22:08:14 +00:00
is Rich Coe. Also, a minor mod to Makefile.install.am to handle tool names with dashes in. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7112
23 lines
282 B
C
23 lines
282 B
C
#include <stdlib.h>
|
|
|
|
static void func1(void)
|
|
{
|
|
char *pointer = 0;
|
|
|
|
pointer = malloc(64); /* Line 7 */
|
|
|
|
return;
|
|
} /* Leak report here Line 10 */
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
int i = 0;
|
|
|
|
for(i = 0; i < 5; i++)
|
|
{
|
|
func1();
|
|
}
|
|
|
|
return 0;
|
|
}
|