Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: dev

ok this script works somewhat, Im still loosing memory

 

 

DBMail dev RSS feed   Index | Next | Previous | View Threaded


skraps at hushmail

Apr 2, 2012, 12:53 AM

Post #1 of 2 (146 views)
Permalink
ok this script works somewhat, Im still loosing memory

gcc -o memcache_test ./dm_memcache.c -lmemcached `pkg-config --cflags
--libs glib-2.0`

valgrind summary-

asd
enter id:2
enter value:asdasdasdasdasdasd
sstr: dbmpasswd_2,2,asdasdasdasdasdasd
memcache_set: Allocated buffers
thread process: processing buffer: action-set elements-1
thread process: performing memcache set request: keybuffer-dbmpasswd_2
thread process: setting lock.....
enter keyname:thread process: processing buffer: action-set elements-1
thread process: performing memcache set request: keybuffer-dbmpasswd_2
thread process: setting lock.....
^C==11304==
==11304== HEAP SUMMARY:
==11304== in use at exit: 44,336 bytes in 25 blocks
==11304== total heap usage: 68 allocs, 67 frees, 47,733 bytes
allocated
==11304==
==11304== LEAK SUMMARY:
==11304== definitely lost: 3,112 bytes in 13 blocks
==11304== indirectly lost: 0 bytes in 0 blocks
==11304== possibly lost: 408 bytes in 3 blocks
==11304== still reachable: 40,816 bytes in 9 blocks
==11304== suppressed: 0 bytes in 0 blocks
==11304== Rerun with --leak-check=full to see details of leaked memory
==11304==
==11304== For counts of detected and suppressed errors, rerun with: -v
==11304== ERROR SUMMARY: 138 errors from 10 contexts (suppressed: 23
from 8)
Attachments: dm_memcache.c (9.26 KB)
  dm_memcache.h (1.30 KB)


paul at nfg

Apr 2, 2012, 2:18 AM

Post #2 of 2 (123 views)
Permalink
Re: ok this script works somewhat, Im still loosing memory [In reply to]

On 04/02/2012 09:53 AM, skraps [at] hushmail wrote:

> ==11304== Rerun with --leak-check=full to see details of leaked memory

If you do as valgrind suggests, it will tell you where you are leaking.


--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin

* Premium Hosting Services and Web Application Consultancy *

www.nfg.nl/info [at] nfg/+31.85.877.99.97
________________________________________________________________
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

DBMail dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.