When default value is checked in schema upgrade, memory allocated by copyValueToEdu() is not freed.
==4466== 96 bytes in 5 blocks are definitely lost in loss record 72 of 155
==4466== at 0x4C29554: malloc (vg_replace_malloc.c:296)
==4466== by 0x42A779: ImmAttrValue::copyValueToEdu(immsv_edu_attr_val, SaImmValueTypeT) const (ImmAttrValue.cc:190)
==4466== by 0x439911: ImmModel::notCompatibleAtt(std::string const&, ClassInfo, std::string const&, AttrInfo const, AttrInfo, std::map<std::string, AttrInfo*,="" std::less<std::string="">, std::allocator<std::pa ir<std::string="" const,="" AttrInfo*=""> > >) (ImmModel.cc:4129)
==4466== by 0x437FF1: ImmModel::verifySchemaChange(std::string const&, ClassInfo, ClassInfo*, std::map<std::string, AttrInfo*,="" std::less<std::string="">, std::allocator<std::pair<std::string const,="" AttrInfo*=""> >
&, std::map<std::string, AttrInfo*,="" std::less<std::string="">, std::allocator<std::pair<std::string const,="" AttrInfo*=""> > >&) (ImmModel.cc:3799)
==4466== by 0x43592B: ImmModel::classCreate(ImmsvOmClassDescr const, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) (ImmModel.cc:3316)
==4466== by 0x42D4C3: immModel_classCreate (ImmModel.cc:587)
==4466== by 0x413121: immnd_evt_proc_class_create (immnd_evt.c:5266)
==4466== by 0x41B0F3: immnd_evt_proc_fevs_dispatch (immnd_evt.c:8037)
==4466== by 0x41DC01: immnd_evt_proc_fevs_rcv (immnd_evt.c:8877)
==4466== by 0x406A91: immnd_process_evt (immnd_evt.c:680)
==4466== by 0x421A11: main (immnd_main.c:348)
https://sourceforge.net/p/opensaf/mailman/message/34480567/
opensaf-4.5.x:
changeset: 6885:201e5be5d807
branch: opensaf-4.5.x
parent: 6882:4e75e8fed376
user: Zoran Milinkovic zoran.milinkovic@ericsson.com
date: Tue Sep 22 12:56:17 2015 +0200
summary: imm: fix memory leak in schema upgrade [#1495]
opensaf-4.6.x:
changeset: 6886:22d7d85287e6
branch: opensaf-4.6.x
parent: 6883:bb384f418d11
user: Zoran Milinkovic zoran.milinkovic@ericsson.com
date: Tue Sep 22 12:56:17 2015 +0200
summary: imm: fix memory leak in schema upgrade [#1495]
default(4.7):
changeset: 6887:e3da373d914a
tag: tip
parent: 6884:84f923f86912
user: Zoran Milinkovic zoran.milinkovic@ericsson.com
date: Tue Sep 22 12:56:17 2015 +0200
summary: imm: fix memory leak in schema upgrade [#1495]
Related
Tickets:
#1495