Skip to content

Conversation

@evanj
Copy link
Contributor

@evanj evanj commented Jan 4, 2026

When rocksdb_create_column_family returns an error, it also returns a non-NULL pointer that needs to be freed. I have attempted to submit a fix for this upstream to RocksDB [1]. Add a check to free it if it returns a non-NULL pointer, which will work with older versions of RocksDB.

I believe this is the last of my set of fixes for valgrind reported memory leaks in the rust-rocksdb tests.

[1] facebook/rocksdb#14214

When rocksdb_create_column_family returns an error, it also returns
a non-NULL pointer that needs to be freed. I have attempted to submit
a fix for this upstream to RocksDB [1]. Add a check to free it if it
returns a non-NULL pointer, which will work with older versions of
RocksDB.

I believe this is the last of my set of fixes for valgrind reported
memory leaks in the rust-rocksdb tests.

[1] facebook/rocksdb#14214
@aleksuss aleksuss merged commit 1513148 into rust-rocksdb:master Jan 5, 2026
8 checks passed
pcholakov pushed a commit to restatedev/rust-rocksdb that referenced this pull request Jan 15, 2026
When rocksdb_create_column_family returns an error, it also returns
a non-NULL pointer that needs to be freed. I have attempted to submit
a fix for this upstream to RocksDB [1]. Add a check to free it if it
returns a non-NULL pointer, which will work with older versions of
RocksDB.

I believe this is the last of my set of fixes for valgrind reported
memory leaks in the rust-rocksdb tests.

[1] facebook/rocksdb#14214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants