aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
Diffstat (limited to 'ice40')
-rw-r--r--ice40/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/main.cc b/ice40/main.cc
index e86cd5b1..76c059b8 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -283,7 +283,7 @@ int main(int argc, char *argv[])
if (vm.count("json")) {
std::string filename = vm["json"].as<std::string>();
- std::istream *f = new std::ifstream(filename);
+ std::ifstream f(filename);
parse_json_file(f, filename, &ctx);