Kaydet (Commit) 10e85ded authored tarafından Christian Heimes's avatar Christian Heimes

Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s going…

Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s going out of scope leaks the storage it points to.
......@@ -3846,6 +3846,7 @@ parsestrplus(struct compiling *c, const node *n, int *bytesmode)
goto onError;
if (*bytesmode != subbm) {
ast_error(c, n, "cannot mix bytes and nonbytes literals");
Py_DECREF(s);
goto onError;
}
if (PyBytes_Check(v) && PyBytes_Check(s)) {
......
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