Skip to content

Commit c01e5db

Browse files
authored
Merge pull request #3401 from nic-prgs/ValidateSchema-memory-leak
Plug memory leak when msre_op_validateSchema_execute() exits normally (validateSchema)
2 parents 348005a + cfbdc30 commit c01e5db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apache2/re_operators.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2898,6 +2898,7 @@ static int msre_op_validateSchema_execute(modsec_rec *msr, msre_rule *rule, msre
28982898

28992899
xmlSchemaFree(schema);
29002900
xmlSchemaFreeValidCtxt(validCtx);
2901+
xmlSchemaFreeParserCtxt(parserCtx);
29012902

29022903
return 0;
29032904
}

0 commit comments

Comments
 (0)