OSSP CVS Repository

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

Check-in Number: 3196
Date: 2003-Feb-10 21:21:49 (local)
2003-Feb-10 20:21:49 (UTC)
User:rse
Branch:
Comment: fix first set of memory leaks
Tickets:
Inspections:
Files:
ossp-pkg/var/var.c      1.91 -> 1.92     2 inserted, 0 deleted

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

--- var.c        2003/02/10 15:37:15     1.91
+++ var.c        2003/02/10 20:21:49     1.92
@@ -702,6 +702,7 @@
                 rc = VAR_ERR_OUT_OF_MEMORY;
                 goto error_return;
             }
+            tokenbuf_free(&tmp);
         }
     } while (rc > 0);
     tokenbuf_free(&tmp);
@@ -1936,6 +1937,7 @@
                 rc = VAR_ERR_OUT_OF_MEMORY;
                 goto error_return;
             }
+            tokenbuf_free(&tmp);
             p += rc;
         }
     } while (rc > 0);

CVSTrac 2.0.1