]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Free was called with a struct as argument instead of a field from the
authorSjoerd Mullender <sjoerd@acm.org>
Thu, 13 Oct 1994 09:11:13 +0000 (09:11 +0000)
committerSjoerd Mullender <sjoerd@acm.org>
Thu, 13 Oct 1994 09:11:13 +0000 (09:11 +0000)
struct.

Modules/gdbmmodule.c

index fce35992599038c1427d75515e60391c8c7c0f69..ccf934f305f5f7e6d2fba6ac3fba88049f95f155 100644 (file)
@@ -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;