]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix a memory leak in cupsConnectDest (STR #4634)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 25 May 2015 15:08:41 +0000 (15:08 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 25 May 2015 15:08:41 +0000 (15:08 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12664 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-2.0.txt
cups/dest.c

index f4b8e4b5991dc9c143b379cf42b131798ff2bb24..cb4bc3873655890f93b8b56fdca674108e99112c 100644 (file)
@@ -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)
 
 
index cbccd668002bf63501cb8d78cdb257f5fc8b817f..554903facef52d1fba2f98db862b888c54b5e089 100644 (file)
@@ -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...