Skip to content

Memory leaks #10

@jeff-longino

Description

@jeff-longino

After some initial testing with 1.9.2 I found memory growth issues.
In Native.cs I changes all calls to the free method
From: leveldb_free(ptr);
To: leveldb_free(ref ptr);

And changed the associated import
[DllImport("libleveldb", CallingConvention = CallingConvention.Cdecl)]
public static extern void leveldb_free(ref IntPtr ptr);

All seems well after these changes. Though it does leave me a little uneasy that I'm not finding anyone else needing to make this change.

I'm using the kkowalczyk-leveldb-6f9f0bca2016 windows port of LevelDB itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions