mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-26 07:19:16 +08:00
* 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:
@ -24,5 +24,6 @@ int main()
|
||||
|
||||
p = malloc (1);
|
||||
|
||||
return 0; /* print p */
|
||||
free (p); /* print p */
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user