[pypy-commit] pypy default: change order
mattip
noreply at buildbot.pypy.org
Mon Oct 6 07:03:03 CEST 2014
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r73822:5c0e512cf6dc
Date: 2014-10-06 08:00 +0300
http://bitbucket.org/pypy/pypy/changeset/5c0e512cf6dc/
Log: change order
diff --git a/pypy/module/cpyext/eval.py b/pypy/module/cpyext/eval.py
--- a/pypy/module/cpyext/eval.py
+++ b/pypy/module/cpyext/eval.py
@@ -155,8 +155,8 @@
filename = rffi.charp2str(filename)
buf = lltype.malloc(rffi.CCHARP.TO, BUF_SIZE, flavor='raw')
if not is_valid_fp(fp):
+ lltype.free(buf, flavor='raw')
PyErr_SetFromErrno(space, space.w_IOError)
- lltype.free(buf, flavor='raw')
return None
try:
while True:
More information about the pypy-commit
mailing list