projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lua plugin: Don't destroy interpreter early
[collectd.git]
/
src
/
lua.c
diff --git
a/src/lua.c
b/src/lua.c
index
d1c0085
..
b5d3ce5
100644
(file)
--- a/
src/lua.c
+++ b/
src/lua.c
@@
-471,9
+471,6
@@
static int lua_script_load(const char *script_path) /* {{{ */
else
ERROR("Lua plugin: Executing script \"%s\" failed:\n%s",
script_path, errmsg);
else
ERROR("Lua plugin: Executing script \"%s\" failed:\n%s",
script_path, errmsg);
-
- lua_script_free(script);
- return -1;
}
/* Append this script to the global list of scripts. */
}
/* Append this script to the global list of scripts. */
@@
-487,6
+484,9
@@
static int lua_script_load(const char *script_path) /* {{{ */
scripts = script;
}
scripts = script;
}
+ if (status != 0)
+ return -1;
+
return 0;
} /* }}} int lua_script_load */
return 0;
} /* }}} int lua_script_load */