diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-25 15:19:34 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-25 15:19:34 +0200 |
commit | d397bb25265b8b0926af050c4187cfbc5ab074ca (patch) | |
tree | f0e228fed2f4aa6a9017021af8ec036349db1562 /runtime/modules.c | |
parent | e273e0ef19f374baf35111584b65e619e3dbcaf8 (diff) | |
download | rsyslog-d397bb25265b8b0926af050c4187cfbc5ab074ca.tar.gz rsyslog-d397bb25265b8b0926af050c4187cfbc5ab074ca.tar.bz2 rsyslog-d397bb25265b8b0926af050c4187cfbc5ab074ca.zip |
fix invalid free caused by optimized script execution
Diffstat (limited to 'runtime/modules.c')
-rw-r--r-- | runtime/modules.c | 3 |
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); } |