diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-26 10:32:56 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-26 10:32:56 +0200 |
commit | 244e4571849aef4ea0c26c398ba056ea7d641592 (patch) | |
tree | 1789a1e7887b36a735639cd5e61d011edcba39d5 | |
parent | 296d8158e6cd110a46cc6d58ceb0ebfcb0e94f45 (diff) | |
parent | 5b9a6992f73bbbba847402946443b001f8b639df (diff) | |
download | rsyslog-244e4571849aef4ea0c26c398ba056ea7d641592.tar.gz rsyslog-244e4571849aef4ea0c26c398ba056ea7d641592.tar.bz2 rsyslog-244e4571849aef4ea0c26c398ba056ea7d641592.zip |
Merge branch 'v7-stable'
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | grammar/rainerscript.c | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -179,6 +179,9 @@ Version 7.5.0 [devel] 2013-06-11 Thanks to Axel Rau for the patch. --------------------------------------------------------------------------- Version 7.4.6 [v7.4-stable] 2013-11-?? +- bugfix: memory leak in strlen() RainerScript function + Thanks to Gregoire Seux for reportig this bug. + closes: http://bugzilla.adiscon.com/show_bug.cgi?id=486 - bugfix: buffer overrun if re_extract function was called for submatch 50 Thanks to Pavel Levshin for reporting the problem and its location. - bugfix: memleak in re_extract() function diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c index 0f16a816..4da49798 100644 --- a/grammar/rainerscript.c +++ b/grammar/rainerscript.c @@ -1470,6 +1470,7 @@ doFuncCall(struct cnffunc *func, struct var *ret, void* usrptr) estr = var2String(&r[0], &bMustFree); ret->d.n = es_strlen(estr); if(bMustFree) es_deleteStr(estr); + if(r[0].datatype == 'S') es_deleteStr(r[0].d.estr); } ret->datatype = 'N'; break; |