OSSP CVS Repository

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

Check-in Number: 777
Date: 2001-Aug-28 12:38:44 (local)
2001-Aug-28 10:38:44 (UTC)
User:rse
Branch:
Comment: Fix a memory leak in Str
Tickets:
Inspections:
Files:
ossp-pkg/str/str_parse.c      1.14 -> 1.15     2 inserted, 0 deleted

ossp-pkg/str/str_parse.c 1.14 -> 1.15

--- str_parse.c  2001/08/16 13:21:23     1.14
+++ str_parse.c  2001/08/28 10:38:44     1.15
@@ -120,6 +120,8 @@
         while (he != NULL) {
             ohe = he;
             he = he->next;
+            if (ohe->key != NULL)
+                free(ohe->key);
             free(ohe);
         }
     }

CVSTrac 2.0.1