- **status**: accepted --> review


---

** [tickets:#1848] imm: Memory leak in ImmSearchOp::nextResult**

**Status:** review
**Milestone:** 4.7.2
**Created:** Tue May 24, 2016 10:12 AM UTC by Hung Nguyen
**Last Updated:** Tue May 24, 2016 10:15 AM UTC
**Owner:** Hung Nguyen


Reproduce:

Use immlist on an object with runtime attributes and OI attached.
Kill immlist before receiving the response from OI.


~~~
root@SC-1:~# immlist safSu=SC-1,safSg=NoRed,safApp=OpenSAF & kill -9 `pidof 
immlist`
~~~



~~~
==23745== 644 (24 direct, 620 indirect) bytes in 1 blocks are definitely lost 
in loss record 154 of 208
==23745==    at 0x4C2B200: calloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==23745==    by 0x42104E: ImmSearchOp::nextResult(ImmsvOmRspSearchNext**, 
void**, std::list<SearchAttribute, std::allocator<SearchAttribute> >**) 
(ImmSearchOp.cc:124)
==23745==    by 0x42AD55: immModel_nextResult (ImmModel.cc:1514)
==23745==    by 0x40E216: immnd_evt_proc_search_next (immnd_evt.c:1526)
==23745==    by 0x40EA86: immnd_evt_proc_accessor_get (immnd_evt.c:1861)
==23745==    by 0x4187C2: immnd_process_evt (immnd_evt.c:609)
==23745==    by 0x40B585: main (immnd_main.c:348)
~~~

---

Analysis:
The problem is 'mLastResult' is not freed when discarding the client node.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to