mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 01:51:29 +00:00
Add CLEAR_CALLER_SAVED_REGS in leak-tree test
Motivation for this change is similar to what has already been done in other leak-* tests. That is, call CLEAR_CALLER_SAVED_REGS (currently used only on PPC and MIPS arches) to clear temporary registers that might be holding pointers lost in a previously called function. This fixes memcheck/tests/leak-tree failure on some MIPS platforms. Patch by Aleksandar Rikalo. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16173
This commit is contained in:
parent
992cea3551
commit
d91042c29d
@ -62,6 +62,7 @@ int main(void)
|
||||
// See leak-cases.c for why we do the work in f().
|
||||
f();
|
||||
|
||||
CLEAR_CALLER_SAVED_REGS;
|
||||
GET_FINAL_LEAK_COUNTS;
|
||||
|
||||
PRINT_LEAK_COUNTS(stderr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user