]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure we initialize define_match/no_match to NULL, and make sure we free
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 10 Jan 2013 17:40:38 +0000 (17:40 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 10 Jan 2013 17:40:38 +0000 (17:40 +0000)
them on error.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10792 7a7537e8-13f0-0310-91df-b6672ffda945

doc/help/man-ipptool.html
test/ipptool.c

index 1b523c537d122c52a66c6422acaacfc714cd2053..189613a9d4a267f4eb975e73316d9ed41fbbddb3 100644 (file)
@@ -151,7 +151,7 @@ The following standard files are available:
 <br>
 <a href='http://localhost:631/help'>http://localhost:631/help</a>
 <h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
-Copyright 2007-2012 by Apple Inc.
+Copyright 2007-2013 by Apple Inc.
 
 </body>
 </html>
index 07c0b043518cfa5ffb82794d134c1898b3784527..cddc55dfb971a5f0b61336e8d39778cc2806f3a1 100644 (file)
@@ -1858,6 +1858,8 @@ do_tests(_cups_vars_t *vars,              /* I - Variables */
         last_status = statuses + num_statuses;
        num_statuses ++;
 
+        last_status->define_match    = NULL;
+        last_status->define_no_match = NULL;
        last_status->if_defined      = NULL;
        last_status->if_not_defined  = NULL;
        last_status->repeat_limit    = 1000;
@@ -3137,6 +3139,10 @@ do_tests(_cups_vars_t *vars,             /* I - Variables */
       free(statuses[i].if_defined);
     if (statuses[i].if_not_defined)
       free(statuses[i].if_not_defined);
+      if (statuses[i].define_match)
+        free(statuses[i].define_match);
+      if (statuses[i].define_no_match)
+        free(statuses[i].define_no_match);
   }
 
   for (i = num_expects, expect = expects; i > 0; i --, expect ++)