found a memory leak in cups/http.c
Ettl Martin
ettl.martin at gmx.de
Tue Jun 30 14:36:21 PDT 2009
Hi all,
i have checked the sources of cups with the static code analysis tool cppcheck. It found a memory leak in file http.c at line 2769 and printed the following message:
[cups-1.3.10/cups/http.c:2769]: (all) Memory leak: conn
Take a look at file http.c at line 2769:
if ((gnutls_handshake(conn->session)) != GNUTLS_E_SUCCESS)
{
http->error = errno;
http->status = HTTP_ERROR;
2769 return (-1);
}
Indeed, the pointer memory, where conn points to, is not freed at line 2769.
Best regards
Ettl Martin
More information about the cups
mailing list