]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
leak-detective: align allocations on both 32 and 64-bit systems to 32 bytes
authorMartin Willi <martin@revosec.ch>
Tue, 2 Apr 2013 15:41:04 +0000 (17:41 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 6 May 2013 13:15:24 +0000 (15:15 +0200)
src/libstrongswan/utils/leak_detective.c

index 2883b88d9dc540afb9ce8ab77f14d80a9c60b539..169d2c87f7b52861949b9ed62da37413749c0fce 100644 (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
         */