diff options
| author | Quentin Young <qlyoung@nvidia.com> | 2020-11-29 02:33:18 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@nvidia.com> | 2020-12-01 18:37:14 -0500 |
| commit | 479d37cce04147d50c3b8a2dcd2b4583b9e9232a (patch) | |
| tree | 097097b6d0549fb8c4a5fee3ff39eb9ff125ca0a /lib/frrscript.c | |
| parent | 646b0cce88a4fa6512f434d508a627518d28e55c (diff) | |
lib: close lua state when destroying script
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'lib/frrscript.c')
| -rw-r--r-- | lib/frrscript.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/frrscript.c b/lib/frrscript.c index 5465aa36e2..8623415ef8 100644 --- a/lib/frrscript.c +++ b/lib/frrscript.c @@ -205,6 +205,7 @@ fail: void frrscript_unload(struct frrscript *fs) { + lua_close(fs->L); XFREE(MTYPE_TMP, fs->name); XFREE(MTYPE_TMP, fs); } |
