[cups.development] found a memory leak in cups/http.c
Michael R Sweet
msweet at apple.com
Tue Jun 30 14:52:28 PDT 2009
Ettl Martin wrote:
> 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.
Please file bugs here:
http://www.cups.org/str.php
Thank you!
--
______________________________________________________________________
Michael R Sweet Senior Printing System Engineer
More information about the cups-devel
mailing list