From: Lennart Poettering Date: Fri, 12 Jul 2019 15:09:09 +0000 (+0200) Subject: alloc-util: drop _alloc_ decorator from memdup_suffix0() X-Git-Tag: v243-rc1~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b65011dad080848e52b2077ac2e8030b8cb19f91;p=thirdparty%2Fsystemd.git alloc-util: drop _alloc_ decorator from memdup_suffix0() Fixes: https://github.com/systemd/systemd/pull/13034#issuecomment-510801671 --- diff --git a/src/basic/alloc-util.h b/src/basic/alloc-util.h index cffc737d03a..64d9e00315e 100644 --- a/src/basic/alloc-util.h +++ b/src/basic/alloc-util.h @@ -58,7 +58,7 @@ static inline void *mfree(void *memory) { }) void* memdup(const void *p, size_t l) _alloc_(2); -void* memdup_suffix0(const void *p, size_t l) _alloc_(2); +void* memdup_suffix0(const void *p, size_t l); /* We can't use _alloc_() here, since we return a buffer one byte larger than the specified size */ #define memdupa(p, l) \ ({ \