From 8c73ff245cee8da2ca75c5651be88a36358a5dae Mon Sep 17 00:00:00 2001
From: Richard Linden <none@none>
Date: Thu, 10 Jan 2013 00:12:25 -0800
Subject: [PATCH] SH-3468 WIP add memory tracking base class actually use
 return value of posix_memalign!

---
 indra/llcommon/lltrace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llcommon/lltrace.h b/indra/llcommon/lltrace.h
index 7694f65441f..a9d5cc58de1 100644
--- a/indra/llcommon/lltrace.h
+++ b/indra/llcommon/lltrace.h
@@ -680,7 +680,7 @@ void* allocAligned(size_t size)
 #elif LL_DARWIN
 		padded_allocation = ll_aligned_malloc(size_with_reserve, ALIGNMENT);
 #else
-		posix_memalign(&padded_allocation, ALIGNMENT, size_with_reserve);
+		padded_allocation = posix_memalign(&padded_allocation, ALIGNMENT, size_with_reserve);
 #endif
 	}
 	return (char*)padded_allocation + aligned_reserve;
-- 
GitLab