summaryrefslogtreecommitdiff
path: root/lib/frrscript.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-05-04 21:19:51 +0300
committerGitHub <noreply@github.com>2022-05-04 21:19:51 +0300
commit50f1f2e724f8614ada1a1a02dd28f1ff3af06e08 (patch)
tree8923363c95ef0fb10fd63fd549f580a834b3cca4 /lib/frrscript.c
parentd98de984a908579ac1cd0c1a67f32e8381757c55 (diff)
parent8e3aae66cec563cee0add26482f279c4aae67cb1 (diff)
Merge pull request #11059 from anlancs/fix/bgpd-evnp-wrong-check-hashget
bgpd: fix memory leak for evpn
Diffstat (limited to 'lib/frrscript.c')
-rw-r--r--lib/frrscript.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/frrscript.c b/lib/frrscript.c
index 8add44c19e..a19bd0c3db 100644
--- a/lib/frrscript.c
+++ b/lib/frrscript.c
@@ -333,7 +333,7 @@ void frrscript_register_type_codec(struct frrscript_codec *codec)
assert(!"Type codec double-registered.");
}
- assert(hash_get(codec_hash, &c, codec_alloc));
+ (void)hash_get(codec_hash, &c, codec_alloc);
}
void frrscript_register_type_codecs(struct frrscript_codec *codecs)
@@ -399,7 +399,7 @@ int frrscript_load(struct frrscript *fs, const char *function_name,
/* Add the Lua function state to frrscript */
struct lua_function_state key = {.name = function_name, .L = L};
- hash_get(fs->lua_function_hash, &key, lua_function_alloc);
+ (void)hash_get(fs->lua_function_hash, &key, lua_function_alloc);
return 0;
fail: