From faa0c989f83725745f255840bfcfe28b9f88db95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sat, 9 Jan 2016 05:05:46 +0100 Subject: [PATCH] degesch: Lua: actually allow filtering out input --- degesch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/degesch.c b/degesch.c index 5621f96..e42f015 100644 --- a/degesch.c +++ b/degesch.c @@ -7649,7 +7649,11 @@ lua_plugin_handle_string_filter_result (struct lua_plugin *self, { lua_State *L = self->L; if (lua_isnil (L, -1)) + { + free (*original); + *original = NULL; return true; + } if (!lua_isstring (L, -1)) FAIL ("must return either a string or nil");