summaryrefslogtreecommitdiff
path: root/lib/frrlua.c
diff options
context:
space:
mode:
authorDonald Lee <dlqs@gmx.com>2021-08-10 04:54:50 +0800
committerQuentin Young <qlyoung@qlyoung.net>2023-11-20 20:45:02 -0500
commitfca8ee275c1f51e19aa64a4cc5175cbc88bf8d41 (patch)
tree85a81d601cdbdce075c4c1c064bfb6e1e14c4964 /lib/frrlua.c
parent5042b8e6beb9ff0b9f4a75fcf924c4d46b095bf2 (diff)
lib: Update int and ll decoders with new MTYPE
In the master branch a new MTYPE_SCRIPT_RES was created for frrscript_get_results, lua_to decoders should use that Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'lib/frrlua.c')
-rw-r--r--lib/frrlua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index 0e95e49c6f..2cab1a5460 100644
--- a/lib/frrlua.c
+++ b/lib/frrlua.c
@@ -274,7 +274,7 @@ void lua_decode_integerp(lua_State *L, int idx, int *num)
void *lua_tointegerp(lua_State *L, int idx)
{
- int *num = XCALLOC(MTYPE_TMP, sizeof(int));
+ int *num = XCALLOC(MTYPE_SCRIPT_RES, sizeof(int));
lua_decode_integerp(L, idx, num);
return num;
@@ -348,7 +348,7 @@ void lua_decode_longlongp(lua_State *L, int idx, long long *num)
void *lua_tolonglongp(lua_State *L, int idx)
{
- long long *num = XCALLOC(MTYPE_TMP, sizeof(long long));
+ long long *num = XCALLOC(MTYPE_SCRIPT_RES, sizeof(long long));
lua_decode_longlongp(L, idx, num);
return num;