commit | 5fef17c05dd20ea6c0a6e3532177a916ef022a3c | [log] [tgz] |
---|---|---|
author | Tommi Rantala <tt.rantala@gmail.com> | Sun Aug 05 18:22:21 2012 +0300 |
committer | Tommi Rantala <tt.rantala@gmail.com> | Tue Aug 21 22:33:29 2012 +0300 |
tree | cc083136d565be92754c23d098878caa216dc771 | |
parent | ff0c6ccf6b526cbf3a17230541ba0793ac391d0b [diff] |
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.