* gdb.base/callfuncs.c (main): Assign malloc's return value

and free it afterwards.
	* gdb.base/charset-malloc.c (malloc_stub): Likewise.
	* gdb.base/printcmds.c (main): Likewise.
	* gdb.base/randomize.c (main): Free "p" and change breakpoint
	marker position.
	* gdb.base/setvar.c (dummy): Assign malloc's return value
	and free it afterwards.
This commit is contained in:
Luis Machado
2013-11-27 10:39:26 -02:00
parent 48d5accb7a
commit 0db4ca1856
6 changed files with 21 additions and 5 deletions

View File

@ -24,5 +24,6 @@ int main()
p = malloc (1);
return 0; /* print p */
free (p); /* print p */
return 0;
}