diff options
Diffstat (limited to 'src/common/db.c')
-rw-r--r-- | src/common/db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/db.c b/src/common/db.c index 99c758a8d..bd2bea424 100644 --- a/src/common/db.c +++ b/src/common/db.c @@ -1791,9 +1791,9 @@ static int db_obj_put(DBMap* self, DBKey key, DBData data, DBData *out_data) if (node->deleted) { db_free_remove(db, node); } else { - db->release(node->key, node->data, DB_RELEASE_BOTH); if (out_data) memcpy(out_data, &node->data, sizeof(*out_data)); + db->release(node->key, node->data, DB_RELEASE_BOTH); retval = 1; } break; |