summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-11 05:48:14 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-11 05:48:14 (GMT)
commit7d5b6e8991fc397492f735a6e9d5e073e54ab15e (patch)
treef48564f8d294341bb4c24c0ae998d5edd3b620ac /Objects
parent8e6675a7dcaa71b1d8b5e094ea15bc21d13376f0 (diff)
downloadcpython-7d5b6e8991fc397492f735a6e9d5e073e54ab15e.zip
cpython-7d5b6e8991fc397492f735a6e9d5e073e54ab15e.tar.gz
cpython-7d5b6e8991fc397492f735a6e9d5e073e54ab15e.tar.bz2
f_code can't be NULL based on Frame_New and other code that derefs it.
So there doesn't seem to be much point to checking here.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/frameobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index fcb5e4e..06c3c7a 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -425,7 +425,7 @@ frame_dealloc(PyFrameObject *f)
Py_CLEAR(f->f_exc_traceback);
co = f->f_code;
- if (co != NULL && co->co_zombieframe == NULL)
+ if (co->co_zombieframe == NULL)
co->co_zombieframe = f;
else if (numfree < MAXFREELIST) {
++numfree;
@@ -435,7 +435,7 @@ frame_dealloc(PyFrameObject *f)
else
PyObject_GC_Del(f);
- Py_XDECREF(co);
+ Py_DECREF(co);
Py_TRASHCAN_SAFE_END(f)
}