libertyIncludeBegin leak
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
b4b8abd9d8
commit
9938bf7b94
|
|
@ -546,8 +546,11 @@ libertyIncludeBegin(const char *filename)
|
||||||
liberty_filename = filename;
|
liberty_filename = filename;
|
||||||
liberty_line = 1;
|
liberty_line = 1;
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
libertyParseError("cannot open include file %s.", filename);
|
string file(filename);
|
||||||
|
stringDelete(filename);
|
||||||
|
libertyParseError("cannot open include file %s.", file.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue