summaryrefslogtreecommitdiff
path: root/lib/rpmliblua.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-01-14 15:18:25 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-01-14 15:18:25 +0200
commit267e77f1c1ef007138610a8812a7ca1e3b632eca (patch)
tree269d9e927d86b9d5a84ff18e43ecbe03e0cb52c7 /lib/rpmliblua.c
parent6be1bdf1252c42a1b7329185b0c6e589b47ca948 (diff)
downloadlibrpm-tizen-267e77f1c1ef007138610a8812a7ca1e3b632eca.tar.gz
librpm-tizen-267e77f1c1ef007138610a8812a7ca1e3b632eca.tar.bz2
librpm-tizen-267e77f1c1ef007138610a8812a7ca1e3b632eca.zip
Add central Lua shutdown function and use it
- makes sure lua garbage collect runs - memory used by lua gets freed
Diffstat (limited to 'lib/rpmliblua.c')
-rw-r--r--lib/rpmliblua.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rpmliblua.c b/lib/rpmliblua.c
index e67fc2d02..6876d2fb9 100644
--- a/lib/rpmliblua.c
+++ b/lib/rpmliblua.c
@@ -35,4 +35,10 @@ void rpmLuaInit(void)
return;
}
+void rpmLuaFree(void)
+{
+ rpmlua lua = rpmluaGetGlobalState();
+ rpmluaFree(lua);
+}
+
#endif /* WITH_LUA */