OSSP CVS Repository

ossp - Check-in [3192]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3192
Date: 2003-Feb-10 16:27:54 (local)
2003-Feb-10 15:27:54 (UTC)
User:rse
Branch:
Comment: fix memory leak in OSSP var test suite (under error conditions only)
Tickets:
Inspections:
Files:
ossp-pkg/var/var_test.c      1.45 -> 1.46     3 inserted, 0 deleted

ossp-pkg/var/var_test.c 1.45 -> 1.46

--- var_test.c   2002/03/08 12:57:16     1.45
+++ var_test.c   2003/02/10 15:27:54     1.46
@@ -343,6 +343,7 @@
     }
     if (strcmp(got, exp) != 0) {
         ts_test_fail(TS_CTX, "var_format: expected \"%s\", got \"%s\"\n", exp, got);
+        free(got);
         return;
     }
     free(got);
@@ -358,6 +359,7 @@
     }
     if (strcmp(got, exp) != 0) {
         ts_test_fail(TS_CTX, "var_format: expected \"%s\", got \"%s\"\n", exp, got);
+        free(got);
         return;
     }
     free(got);
@@ -373,6 +375,7 @@
     }
     if (strcmp(got, exp) != 0) {
         ts_test_fail(TS_CTX, "var_format: expected \"%s\", got \"%s\"\n", exp, got);
+        free(got);
         return;
     }
     free(got);

CVSTrac 2.0.1