mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +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
16 lines
240 B
C
16 lines
240 B
C
#include <stdlib.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
char *pointer1 = 0;
|
|
|
|
pointer1 = malloc(64); /* Line 7 */
|
|
|
|
{
|
|
char *pointer2 = (char *)&pointer1;
|
|
pointer2[1] = 1; /* Leak Line 11. */
|
|
}
|
|
|
|
return 0;
|
|
}
|