---

** [tickets:#1461] osaf: memory leak when a service is daemonized**

**Status:** accepted
**Milestone:** 4.6.1
**Created:** Wed Aug 26, 2015 02:59 PM UTC by Zoran Milinkovic
**Last Updated:** Wed Aug 26, 2015 02:59 PM UTC
**Owner:** Zoran Milinkovic


In osaf_get_group_list(), in few places the function return without calling 
endgrent() which causes a memory leak when a service is daemonized.
This memory leak does not have a significant impact on services since it's 
called only once and a small amount of memory is allocated.

==8708== 292 (52 direct, 240 indirect) bytes in 1 blocks are definitely lost in 
loss record 97 of 180
==8708==    at 0x4C29F09: malloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==8708==    by 0x6175E52: nss_parse_service_list (in /lib64/libc-2.11.3.so)
==8708==    by 0x61765CE: __nss_database_lookup (in /lib64/libc-2.11.3.so)
==8708==    by 0x680448F: ???
==8708==    by 0x68047CC: ???
==8708==    by 0x6176C81: __nss_setent (in /lib64/libc-2.11.3.so)
==8708==    by 0x612F74B: setgrent (in /lib64/libc-2.11.3.so)
==8708==    by 0x4E4BEC8: osaf_get_group_list (osaf_secutil.c:361)
==8708==    by 0x4E4B263: daemonize (daemon.c:337)
==8708==    by 0x41A1CD: main (immnd_main.c:262)



---

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