OSSP CVS Repository

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

Check-in Number: 3197
Date: 2003-Feb-10 21:38:18 (local)
2003-Feb-10 20:38:18 (UTC)
User:rse
Branch:
Comment: fix one more memory leak
Tickets:
Inspections:
Files:
ossp-pkg/var/var.c      1.92 -> 1.93     2 inserted, 2 deleted

ossp-pkg/var/var.c 1.92 -> 1.93

--- var.c        2003/02/10 20:21:49     1.92
+++ var.c        2003/02/10 20:38:18     1.93
@@ -748,11 +748,11 @@
             goto error_return;
         if (rc > 0) {
             p += rc;
-            if (!tokenbuf_append
-                (result, tmp.begin, tmp.end - tmp.begin)) {
+            if (!tokenbuf_merge(result, &tmp)) {
                 rc = VAR_ERR_OUT_OF_MEMORY;
                 goto error_return;
             }
+            tokenbuf_free(&tmp);
         }
     } while (rc > 0);
 

CVSTrac 2.0.1