Commit 5122f483 authored by Jim Fulton's avatar Jim Fulton

Fixed small bug in load_build.

parent 8b8f8745
/* /*
* $Id: cPickle.c,v 1.60 1998/10/28 22:57:49 jim Exp $ * $Id: cPickle.c,v 1.61 1998/11/10 00:48:51 jim Exp $
* *
* Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. * Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
* All rights reserved. * All rights reserved.
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
static char cPickle_module_documentation[] = static char cPickle_module_documentation[] =
"C implementation and optimization of the Python pickle module\n" "C implementation and optimization of the Python pickle module\n"
"\n" "\n"
"$Id: cPickle.c,v 1.60 1998/10/28 22:57:49 jim Exp $\n" "$Id: cPickle.c,v 1.61 1998/11/10 00:48:51 jim Exp $\n"
; ;
#include "Python.h" #include "Python.h"
...@@ -3300,6 +3300,8 @@ load_reduce(Unpicklerobject *self) { ...@@ -3300,6 +3300,8 @@ load_reduce(Unpicklerobject *self) {
Py_DECREF(callable); Py_DECREF(callable);
} }
Py_DECREF(arg_tup); Py_DECREF(arg_tup);
if (! ob) return -1;
PDATA_PUSH(self->stack, ob, -1); PDATA_PUSH(self->stack, ob, -1);
return 0; return 0;
...@@ -4275,7 +4277,7 @@ init_stuff(PyObject *module, PyObject *module_dict) { ...@@ -4275,7 +4277,7 @@ init_stuff(PyObject *module, PyObject *module_dict) {
void void
initcPickle() { initcPickle() {
PyObject *m, *d, *v; PyObject *m, *d, *v;
char *rev="$Revision: 1.60 $"; char *rev="$Revision: 1.61 $";
PyObject *format_version; PyObject *format_version;
PyObject *compatible_formats; PyObject *compatible_formats;
......
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