Skip to content

Commit f32c1a1

Browse files
committed
Added memory pool in cmake and smake files
1 parent e4a030a commit f32c1a1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ add_library(xutils STATIC
7070
./src/net/api.c
7171
./src/net/ws.c
7272
./src/sys/sync.c
73+
./src/sys/pool.c
7374
./src/sys/thread.c
7475
./src/sys/xcli.c
7576
./src/sys/xcpu.c

smake.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"./src/net/api.c",
5050
"./src/net/ws.c",
5151
"./src/sys/sync.c",
52+
"./src/sys/pool.c",
5253
"./src/sys/thread.c",
5354
"./src/sys/xcli.c",
5455
"./src/sys/xcpu.c",

src/data/map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void XMap_Free(xmap_t *pMap)
7171

7272
if (pMap->nAlloc)
7373
{
74-
xfree(pPool, pMap);
74+
xfreen(pPool, pMap, sizeof(xmap_t));
7575
}
7676
else
7777
{

0 commit comments

Comments
 (0)