Coverity ID: 35: Resource Leak
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
+2007-03-28 Theodore Tso <tytso@mit.edu>
+
+ * unix.c (parse_extended_opts): Fix memory leak
+
2007-03-21 Theodore Tso <tytso@mit.edu>
* profile.c (profile_open_file): Fix memory leak if malloc() fails
if (p) {
*p = 0;
next = p+1;
- }
+ }
arg = strchr(token, '=');
if (arg) {
*arg = 0;
extended_usage++;
}
}
+ free(buf);
+
if (extended_usage) {
fputs(("\nExtended options are separated by commas, "
"and may take an argument which\n"
"\tea_ver=<ea_version (1 or 2)>\n\n"), stderr);
exit(1);
}
-}
+}
static void syntax_err_report(const char *filename, long err, int line_num)
{