5fef17c05dd20ea6c0a6e3532177a916ef022a3c |
|
05-Aug-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Fix memory leaks in unw_create_addr_space() wrong-endian error paths Check the endianness earlier in unw_create_addr_space() on all architectures to avoid leaking the dynamically allocated address space struct. This was already fixed for ARM in commit cf6a99879604 ("Fix memory leak in ARM unw_create_addr_space()"). Move the endianness check also on ARM to avoid malloc() & free() in the error case.
/external/libunwind/src/ppc/Gcreate_addr_space.c
|