- **status**: review --> fixed
- **Comment**:
opensaf-4.5.x:
changeset: 6885:201e5be5d807
branch: opensaf-4.5.x
parent: 6882:4e75e8fed376
user: Zoran Milinkovic <[email protected]>
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 <[email protected]>
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 <[email protected]>
date: Tue Sep 22 12:56:17 2015 +0200
summary: imm: fix memory leak in schema upgrade [#1495]
---
** [tickets:#1495] imm: memory leak in schema upgrade for default values**
**Status:** fixed
**Milestone:** 4.5.2
**Created:** Tue Sep 22, 2015 10:43 AM UTC by Zoran Milinkovic
**Last Updated:** Tue Sep 22, 2015 11:30 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.
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets