- **status**: review --> fixed
- **Comment**:

opensaf-4.5.x:

changeset:   6768:a101433809f8
branch:      opensaf-4.5.x
parent:      6765:d8c4b6e99421
user:        Zoran Milinkovic <[email protected]>
date:        Thu Aug 27 13:06:52 2015 +0200
summary:     mds: fix memory leak of MDS_PROCESS_INFO structure in MDS [#1462]

-----

opensaf-4.6.x:

changeset:   6769:ceaef51adc43
branch:      opensaf-4.6.x
parent:      6766:1f4db804c6d4
user:        Zoran Milinkovic <[email protected]>
date:        Thu Aug 27 13:06:52 2015 +0200
summary:     mds: fix memory leak of MDS_PROCESS_INFO structure in MDS [#1462]

-----

default(4.7):

changeset:   6770:5d88d3233003
tag:         tip
parent:      6767:9be40d5407a1
user:        Zoran Milinkovic <[email protected]>
date:        Thu Aug 27 13:06:52 2015 +0200
summary:     mds: fix memory leak of MDS_PROCESS_INFO structure in MDS [#1462]



---

** [tickets:#1462] mds: memory leak in MDS auth server**

**Status:** fixed
**Milestone:** 4.5.2
**Created:** Wed Aug 26, 2015 03:36 PM UTC by Zoran Milinkovic
**Last Updated:** Wed Aug 26, 2015 03:52 PM UTC
**Owner:** Zoran Milinkovic


When mds_register_callback() receives MDS_UNREGISTER_REQ, MDS_PROCESS_INFO 
structure is not freed which causes a memory leak.
Memory for MDS_PROCESS_INFO structure is allocated in mds_register_callback() 
when the callback receives MDS_REGISTER_REQ.

==31375== 20,317,248 (20,307,904 direct, 9,344 indirect) bytes in 317,311 
blocks are definitely lost in loss record 241 of 241
==31375==    at 0x4C27FFB: calloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==31375==    by 0x4E73336: mds_register_callback (mds_main.c:160)
==31375==    by 0x4E4CBF7: auth_server_main (osaf_secutil.c:95)
==31375==    by 0x56DC805: start_thread (in /lib64/libpthread-2.11.3.so)
==31375==    by 0x616564C: clone (in /lib64/libc-2.11.3.so)


---

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

Reply via email to