]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix a couple memory leaks in ippfind that were reported by Clang.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 24 Jul 2013 12:16:37 +0000 (12:16 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 24 Jul 2013 12:16:37 +0000 (12:16 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11177 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES.txt
test/ippfind.c

index 2e00c4a3252f366d1458dadeca5ed592b6cf8530..2a07b40e76e8e86bf97f2b288a03a6e8a518086b 100644 (file)
@@ -1,9 +1,10 @@
-CHANGES.txt - 1.7.0 - 2013-07-23
+CHANGES.txt - 1.7.0 - 2013-07-24
 --------------------------------
 
 CHANGES IN CUPS V1.7.0
 
        - Added an Italian localization (<rdar://problem/14481578>)
+       - Fixed a couple memory leaks in ippfind that were reported by Clang.
        - Fixed a compile issue on 64-bit Linux with Clang - need to use the
          -pie option instead of -Wl,-pie now (<rdar://problem/14480938>)
        - The ippfind utility reported the wrong port numbers when compiled
index 9294a48bab279ad71f2901c8bf186cd7ce1f78dc..8a7c2015c4c9c37c2fdb249c6bca4378faf5d7be 100644 (file)
@@ -2082,6 +2082,9 @@ exec_program(ippfind_srv_t *service,      /* I - Service */
   for (i = 0; i < num_args; i ++)
     free(myargv[i]);
 
+  free(myargv);
+  free(myenvp);
+
  /*
   * Return whether the program succeeded or crashed...
   */