Check-in Number:
|
936 | |
Date: |
2001-Sep-11 15:20:27 (local)
2001-Sep-11 13:20:27 (UTC) |
User: | rse |
Branch: | |
Comment: |
fix one more memory leak |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/str/str_parse.c 1.16 -> 1.17
--- str_parse.c 2001/09/11 11:39:28 1.16
+++ str_parse.c 2001/09/11 13:20:27 1.17
@@ -567,6 +567,8 @@
/* allocate output buffer */
if ((*cpp = (char *)malloc(l+1)) == NULL) {
+ if (cap_vec != NULL)
+ free(cap_vec);
if (p_pcre != NULL)
free(p_pcre);
if (p_pcre_extra != NULL)
|
|