leak-detective: align allocations on both 32 and 64-bit systems to 32 bytes

This commit is contained in:
Martin Willi
2013-05-06 15:15:24 +02:00
parent 7e3f6299d5
commit 3117824f55
+5
View File
@@ -98,6 +98,11 @@ struct memory_header_t {
*/
backtrace_t *backtrace;
/**
* Padding to make sizeof(memory_header_t) == 32
*/
u_int32_t padding[sizeof(void*) == sizeof(u_int32_t) ? 3 : 0];
/**
* Number of bytes following after the header
*/