- **status**: accepted --> review
- **Comment**:
https://sourceforge.net/p/opensaf/mailman/message/34480567/
---
** [tickets:#1495] imm: memory leak in schema upgrade for default values**
**Status:** review
**Milestone:** 4.5.2
**Created:** Tue Sep 22, 2015 10:43 AM UTC by Zoran Milinkovic
**Last Updated:** Tue Sep 22, 2015 10:43 AM UTC
**Owner:** Zoran Milinkovic
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)
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets