Skip to content

Potential UniValue memory leak #864

@liorwavebl

Description

@liorwavebl

I'm working on litecoin testnet and I have a long list of unspent transactions who's returned by listunspent RPC.
When I'm calling it more then once the memory does not free and consuming more memory with each call.

Expected behavior
UniValue will release its memory.

Actual behavior

Memory increased.

To reproduce

Run listunspent multiple times.

System information
OS: Ubuntu/CentOS
I'm using litecoin core v0.18.1, but it's happened at previous versions(v0.15.1, v0.16.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions