BUILD: activity/memprofile: fix a build warning in the posix_memalign handler
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Nov 2024 08:41:02 +0000 (09:41 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 9 Jan 2025 14:56:04 +0000 (15:56 +0100)
commit8abed46c7d7be29bce71b3db8dbc28a0d64c900b
tree8649a3bfe388639c9c0b40b9e0b7822b15252e01
parent3985fa47333cdd841227d64a9c65eff0f18773cd
BUILD: activity/memprofile: fix a build warning in the posix_memalign handler

A "return NULL" statement was placed for error handling in the
posix_memalign() handler instead of an int errno value, by recent
commit 5ddc8b3ad4 ("MINOR: activity/memprofile: monitor non-portable
calls as well"). Surprisingly the warning only triggered on gcc-4.8.
Let's use ENOMEM instead. No backport needed.

(cherry picked from commit b30639848e502f79829abc28c8093aa0e34ba1f9)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/activity.c