mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
use skynet malloc api directly
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// include skynet.h first for malloc hook
|
||||
#include "skynet.h"
|
||||
#include "skynet_env.h"
|
||||
|
||||
@@ -49,7 +48,7 @@ skynet_setenv(const char *key, const char *value) {
|
||||
|
||||
void
|
||||
skynet_env_init() {
|
||||
E = malloc(sizeof(*E));
|
||||
E = skynet_malloc(sizeof(*E));
|
||||
E->lock = 0;
|
||||
E->L = luaL_newstate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user