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
--- 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);
}
}
|
|