mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
use macro for replace malloc api (see skynet_malloc.h)
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// include skynet.h first for malloc hook
|
||||
#include "skynet.h"
|
||||
|
||||
#include "skynet_handle.h"
|
||||
#include "skynet_server.h"
|
||||
#include "rwlock.h"
|
||||
@@ -204,7 +207,7 @@ _insert_name(struct handle_storage *s, const char * name, uint32_t handle) {
|
||||
end = mid - 1;
|
||||
}
|
||||
}
|
||||
char * result = strdup(name);
|
||||
char * result = skynet_strdup(name);
|
||||
|
||||
_insert_name_before(s, result, handle, begin);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user