mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-01 15:33:50 +00:00
Fix #1306
This commit is contained in:
@@ -234,7 +234,11 @@ ss_align(size_t size)
|
||||
{
|
||||
int err;
|
||||
void *tmp;
|
||||
#ifdef HAVE_POSIX_MEMALIGN
|
||||
err = posix_memalign(&tmp, sizeof(void *), size);
|
||||
#else
|
||||
err = -1;
|
||||
#endif
|
||||
if (err) {
|
||||
return ss_malloc(size);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user