summaryrefslogtreecommitdiffstats
path: root/runtime/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-25 15:19:34 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-25 15:19:34 +0200
commitd397bb25265b8b0926af050c4187cfbc5ab074ca (patch)
treef0e228fed2f4aa6a9017021af8ec036349db1562 /runtime/modules.c
parente273e0ef19f374baf35111584b65e619e3dbcaf8 (diff)
downloadrsyslog-d397bb25265b8b0926af050c4187cfbc5ab074ca.tar.gz
rsyslog-d397bb25265b8b0926af050c4187cfbc5ab074ca.tar.xz
rsyslog-d397bb25265b8b0926af050c4187cfbc5ab074ca.zip
fix invalid free caused by optimized script execution
Diffstat (limited to 'runtime/modules.c')
-rw-r--r--runtime/modules.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/modules.c b/runtime/modules.c
index d3c51e90..8675e414 100644
--- a/runtime/modules.c
+++ b/runtime/modules.c
@@ -313,7 +313,8 @@ finalize_it:
/* get the name of a module
*/
-static uchar *modGetName(modInfo_t *pThis)
+uchar *
+modGetName(modInfo_t *pThis)
{
return((pThis->pszName == NULL) ? (uchar*) "" : pThis->pszName);
}