mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 13:50:08 +00:00
[5GC/EPC] tested with concurrent 500 UEs (#949)
Fix the memory problem in many simulatneous connections test
This commit is contained in:
parent
03e74c93e8
commit
a58214da76
26 changed files with 205 additions and 146 deletions
15
lib/sbi/openapi/external/cJSON.c
vendored
15
lib/sbi/openapi/external/cJSON.c
vendored
|
|
@ -146,9 +146,18 @@ static void *internal_realloc(void *pointer, size_t size)
|
|||
#endif
|
||||
#else
|
||||
#include "ogs-core.h"
|
||||
#define internal_malloc ogs_malloc
|
||||
#define internal_free ogs_free
|
||||
#define internal_realloc ogs_realloc
|
||||
static void *internal_malloc(size_t size)
|
||||
{
|
||||
return ogs_malloc(size);
|
||||
}
|
||||
static void internal_free(void *pointer)
|
||||
{
|
||||
ogs_free(pointer);
|
||||
}
|
||||
static void *internal_realloc(void *pointer, size_t size)
|
||||
{
|
||||
return ogs_realloc(pointer, size);
|
||||
}
|
||||
#endif
|
||||
|
||||
static internal_hooks global_hooks = { internal_malloc, internal_free, internal_realloc };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue