Fixed: possible memory leak in rsub

This commit is contained in:
Breno Silva 2013-04-04 12:29:33 -04:00
parent 0840b13612
commit 3bd497946e

View File

@ -369,7 +369,7 @@ static int msre_op_ipmatchFromFile_execute(modsec_rec *msr, msre_rule *rule, msr
/* rsub */
static char *param_remove_escape(msre_rule *rule, char *str, int len) {
char *parm = apr_palloc(rule->ruleset->mp, len);
char *parm = apr_pcalloc(rule->ruleset->mp, len);
char *ret = parm;
for(;*str!='\0';str++) {