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:



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

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

and the same file:

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

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




and in daemon.c:

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

70            return (-1);


74            return (-1);


78            return (-1);


88    return (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.

Reply via email to