diff options
author | Sjoerd Mullender <sjoerd@acm.org> | 1994-10-13 09:11:13 +0000 |
---|---|---|
committer | Sjoerd Mullender <sjoerd@acm.org> | 1994-10-13 09:11:13 +0000 |
commit | 2abc49458bd8e847c956baf33c188f5716039bf8 (patch) | |
tree | 41b090cad3577bcf3eea97168fbc2c2b5a6557b7 /Modules/gdbmmodule.c | |
parent | Escaped $(LDSHARED) in a string. (diff) | |
download | cpython-2abc49458bd8e847c956baf33c188f5716039bf8.tar.gz cpython-2abc49458bd8e847c956baf33c188f5716039bf8.tar.bz2 cpython-2abc49458bd8e847c956baf33c188f5716039bf8.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c index fce35992599..ccf934f305f 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; |