Commit 66ce4ca9 authored by Kenton Varda's avatar Kenton Varda

Avoid memory leak from throw after constructing return value.

This leaks due to the old compiler bug:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33799
http://llvm.org/bugs/show_bug.cgi?id=12286
parent ab00b687
...@@ -1130,9 +1130,8 @@ public: ...@@ -1130,9 +1130,8 @@ public:
} else if ('A' <= c && c <= 'F') { } else if ('A' <= c && c <= 'F') {
value = value * 16 + (c - 'A' + 10); value = value * 16 + (c - 'A' + 10);
} else { } else {
KJ_FAIL_REQUIRE("invalid HTTP chunk size", text, text.asBytes()) { KJ_FAIL_REQUIRE("invalid HTTP chunk size", text, text.asBytes()) { break; }
return value; return value;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment