the end of a second function whos code was identical enough for patch
not to reject the patch. this reverses that misapplication (only the
DBC_set_range method needed modification, not DBC_set as well). This
problem only exists in the release32-maint branch.
data.data, data.size);
break;
}
- if (_DB_get_type(self->mydb) == DB_BTREE) {
- /* the only time a malloced key is returned is when we
- * call this on a BTree database because it performs
- * partial matching and needs to return the real key.
- * All others leave key untouched [where calling free()
- * on it would often segfault].
- */
- FREE_DBT(key);
- }
+ FREE_DBT(key);
FREE_DBT(data);
}