Skip to content

Commit c79620a

Browse files
Artem Senichevdcrowell77
authored andcommitted
errl: Free memory allocated for parsers
Errl's factory creates new instance of User Defined Data parser on every call, but doesn't free it after usage. Resolves #184 Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I8e8bd54e7aaa4ddb813cec3485404b6ba7a29ffa Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/84518 Reviewed-by: Corey V Swenson <cswenson@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
1 parent ad8653d commit c79620a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/usr/errl/plugins/errludparser.H

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
/* */
66
/* OpenPOWER HostBoot Project */
77
/* */
8-
/* Contributors Listed Below - COPYRIGHT 2012,2018 */
8+
/* Contributors Listed Below - COPYRIGHT 2012,2019 */
99
/* [+] International Business Machines Corp. */
10+
/* [+] YADRO */
1011
/* */
1112
/* */
1213
/* Licensed under the Apache License, Version 2.0 (the "License"); */
@@ -84,6 +85,7 @@ static bool myDataParse(\
8485
{\
8586
l_rc = true;\
8687
l_pParser->parse(i_ver, i_parser, i_buffer, i_buflen);\
88+
delete l_pParser;\
8789
}\
8890
return l_rc;\
8991
}\

0 commit comments

Comments
 (0)