uci/lua: add explicit close() method
authorDirk Feytons <dirk.feytons@gmail.com>
Thu, 29 Sep 2016 15:39:57 +0000 (17:39 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 27 Oct 2016 10:37:23 +0000 (12:37 +0200)
commit0a1a2fcaf96169bfebca6151fcc6c73bac05f1c7
tree599ef5c8506677726fd51f1fe1c45cae1bb65ef6
parent7daf94275cce4c9dd74fe4eb846b0f4d40486f1d
uci/lua: add explicit close() method

This allows a caller to explicitly free the cursor as soon as it is
no longer needed instead of having to wait for the garbage collector.

Signed-off-by: Dirk Feytons <dirk.feytons@gmail.com>
lua/uci.c