- **Milestone**: 5.19.01 --> 5.19.03


---

** [tickets:#2804] base: possible memleak in daemonize()**

**Status:** assigned
**Milestone:** 5.19.03
**Created:** Fri Mar 09, 2018 04:21 AM UTC by Minh Hon Chau
**Last Updated:** Wed Jan 09, 2019 09:23 PM UTC
**Owner:** Minh Hon Chau


- start opensaf, running amfd with valgrind
- stop opensaf

Got memleak report as below
Looks like from strdup()

==1042== Memcheck, a memory error detector
==1042== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==1042== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==1042== Command: /usr/local/lib/opensaf/osafamfd --tracemask=0xffffffff
==1042== Parent PID: 1037
==1042== 
==1042== 
==1042== HEAP SUMMARY:
==1042==     in use at exit: 72,757 bytes in 2 blocks
==1042==   total heap usage: 59 allocs, 57 frees, 78,574 bytes allocated
==1042== 
==1042== 53 bytes in 1 blocks are definitely lost in loss record 1 of 2
==1042==    at 0x4C2DB8F: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==1042==    by 0x58C31CE: daemonize (daemon.c:292)
==1042==    by 0x127C58: main (main.cc:823)
==1042== 
==1042== LEAK SUMMARY:
==1042==    definitely lost: 53 bytes in 1 blocks
==1042==    indirectly lost: 0 bytes in 0 blocks
==1042==      possibly lost: 0 bytes in 0 blocks
==1042==    still reachable: 72,704 bytes in 1 blocks
==1042==         suppressed: 0 bytes in 0 blocks



---

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.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to