summaryrefslogtreecommitdiffstats
path: root/Modules/gdbmmodule.c
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1994-10-13 09:11:13 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>1994-10-13 09:11:13 (GMT)
commit2abc49458bd8e847c956baf33c188f5716039bf8 (patch)
tree41b090cad3577bcf3eea97168fbc2c2b5a6557b7 /Modules/gdbmmodule.c
parent4eba0c9b91af78da2d4d1a744ed630fdb46d3b2d (diff)
downloadcpython-2abc49458bd8e847c956baf33c188f5716039bf8.zip
cpython-2abc49458bd8e847c956baf33c188f5716039bf8.tar.gz
cpython-2abc49458bd8e847c956baf33c188f5716039bf8.tar.bz2
Free was called with a struct as argument instead of a field from the
struct.
Diffstat (limited to 'Modules/gdbmmodule.c')
-rw-r--r--Modules/gdbmmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c
index fce3599..ccf934f 100644
--- a/Modules/gdbmmodule.c
+++ b/Modules/gdbmmodule.c
@@ -93,7 +93,7 @@ dbm_length(dp)
for ( key=gdbm_firstkey(dp->di_dbm); key.dptr;
key = gdbm_nextkey(dp->di_dbm,okey)) {
size++;
- if(okey.dsize) free(okey);
+ if(okey.dsize) free(okey.dptr);
okey=key;
}
dp->di_size = size;
@@ -180,7 +180,7 @@ dbm_keys(dp, args)
if ( item == 0 )
return NULL;
addlistitem(v, item);
- if(okey.dsize) free(okey);
+ if(okey.dsize) free(okey.dptr);
okey=key;
}
return v;