Skip to content

Fix leak in ledgerinfo passed down to Rust#474

Merged
2opremio merged 1 commit intostellar:mainfrom
2opremio:getledgerinfo-leak
Jul 15, 2025
Merged

Fix leak in ledgerinfo passed down to Rust#474
2opremio merged 1 commit intostellar:mainfrom
2opremio:getledgerinfo-leak

Conversation

@2opremio
Copy link
Contributor

@2opremio 2opremio commented Jul 15, 2025

What

Properly deallocate the network passphrase after being used in Rust calls.

Why

It causes a leak, surely contributing to the problem found at #448 .

Known limitations

N/A

@2opremio 2opremio requested a review from Shaptic July 15, 2025 19:38
@2opremio 2opremio enabled auto-merge July 15, 2025 19:41
@2opremio 2opremio disabled auto-merge July 15, 2025 19:41
@2opremio 2opremio enabled auto-merge (squash) July 15, 2025 19:42
@2opremio 2opremio merged commit d3fceb7 into stellar:main Jul 15, 2025
16 of 17 checks passed
@2opremio 2opremio deleted the getledgerinfo-leak branch July 15, 2025 20:12
Shaptic added a commit that referenced this pull request Jul 16, 2025
* Fix leak in ledgerinfo passed down to Rust (#474)
* Pull in monorepo and re-enable unified events
* Bump to rc4

---------

Co-authored-by: Alfonso Acosta <alfonso@stellar.org>
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.

2 participants