Skip to content

Commit

Permalink
Added memory pool in cmake and smake files
Browse files Browse the repository at this point in the history
  • Loading branch information
kala13x committed Nov 21, 2024
1 parent e4a030a commit f32c1a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ add_library(xutils STATIC
./src/net/api.c
./src/net/ws.c
./src/sys/sync.c
./src/sys/pool.c
./src/sys/thread.c
./src/sys/xcli.c
./src/sys/xcpu.c
Expand Down
1 change: 1 addition & 0 deletions smake.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"./src/net/api.c",
"./src/net/ws.c",
"./src/sys/sync.c",
"./src/sys/pool.c",
"./src/sys/thread.c",
"./src/sys/xcli.c",
"./src/sys/xcpu.c",
Expand Down
2 changes: 1 addition & 1 deletion src/data/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void XMap_Free(xmap_t *pMap)

if (pMap->nAlloc)
{
xfree(pPool, pMap);
xfreen(pPool, pMap, sizeof(xmap_t));
}
else
{
Expand Down

0 comments on commit f32c1a1

Please sign in to comment.