From: msweet Date: Mon, 25 May 2015 15:08:41 +0000 (+0000) Subject: Fix a memory leak in cupsConnectDest (STR #4634) X-Git-Tag: v2.2b1~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=520fe1dee43977f641a0254f00b40cf64664ab30;p=thirdparty%2Fcups.git Fix a memory leak in cupsConnectDest (STR #4634) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12664 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES-2.0.txt b/CHANGES-2.0.txt index f4b8e4b599..cb4bc38736 100644 --- a/CHANGES-2.0.txt +++ b/CHANGES-2.0.txt @@ -26,6 +26,7 @@ CHANGES IN CUPS V2.0.3 - ippfind incorrectly substituted "=port" for service_port. - The IPP/1.1 test file did not handle the initial print job completing early (STR #4576) + - Fixed a memory leak in cupsConnectDest (STR #4634) - Added Russian translation (STR #4577) diff --git a/cups/dest.c b/cups/dest.c index cbccd66800..554903face 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -3,7 +3,7 @@ * * User-defined destination (and option) support for CUPS. * - * Copyright 2007-2014 by Apple Inc. + * Copyright 2007-2015 by Apple Inc. * Copyright 1997-2007 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -657,6 +657,7 @@ cupsConnectDest( http = httpConnect2(hostname, port, addrlist, AF_UNSPEC, encryption, 1, 0, NULL); + httpAddrFreeList(addrlist); /* * Connect if requested...