From 1f8f954174ece6af187657c41f182954b3ac77a8 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Mon, 19 Oct 2015 08:47:10 +0200 Subject: [PATCH] exit Lua loading fails closes #54 --- recorder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recorder.c b/recorder.c index f16d85a..39daa6c 100644 --- a/recorder.c +++ b/recorder.c @@ -1113,8 +1113,8 @@ int main(int argc, char **argv) if (luascript) { if ((udata.luadata = hooks_init(ud, luascript)) == NULL) - olog(LOG_NOTICE, "proceeding sans Lua"); - free(luascript); + olog(LOG_ERR, "Stopping because Lua load failed"); + exit(1); } #endif