leak-detective: align allocations on both 32 and 64-bit systems to 32 bytes
[strongswan.git] / src / libstrongswan / utils / leak_detective.c
index 2883b88..169d2c8 100644 (file)
@@ -99,6 +99,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
         */
        u_int32_t bytes;