1.4.22

2015-01-01 Thread dormando
https://code.google.com/p/memcached/wiki/ReleaseNotes1422


Issue 392 in memcached: memleaks

2015-01-01 Thread memcached

Status: New
Owner: 
Labels: Type-Defect Priority-Medium

New issue 392 by megaman...@gmail.com: memleaks
https://code.google.com/p/memcached/issues/detail?id=392

In /memcached.c:



1516if (dump_buf == NULL || len <= 0) {
1517out_of_memory(c, "SERVER_ERROR Out of memory generating  
stats");

1518return ;

dump_buf should be freed, regardless if it's considered "useful" or not.

and the same file:

4452if ((sfd = new_socket(next)) == -1) {

since it's in a loop, overwriting 'sfd' leaks the handle.




and in daemon.c:

67if (noclose == 0 && (fd = open("/dev/null", O_RDWR, 0)) != -1) {
'fd' is never closed :

70return (-1);


74return (-1);


78return (-1);


88return (0);




Thanks,

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- 
You received this message because you are subscribed to the Google Groups "memcached" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.