basho-labs / riak-c-client

Riak C Client
Apache License 2.0
20 stars 8 forks source link

memory leak audit #55

Open bookshelfdave opened 10 years ago

bookshelfdave commented 10 years ago

Messages:

hazen commented 10 years ago

Is this a hand job or did you have an automated tool in mind?

bookshelfdave commented 10 years ago

:fish:

bookshelfdave commented 10 years ago

I have a couple ideas, maybe we can discuss tomorrow. I liked @bkerley's idea to check Valgrind output automatically. As a first pass, we should check for riak_free's vs riak_binary_free's.

hazen commented 10 years ago

Yes, I also have a couple of ideas. We should figure out what we want to run Valgrind on, too.

bookshelfdave commented 10 years ago

See: https://github.com/basho/riak-c-client/pull/59

bookshelfdave commented 10 years ago

@javajolt I don't see where operation specific requests are being freed outside of riak_operation_free .

For example, what takes care of freeing this binary? https://github.com/basho/riak-c-client/blob/develop/src/internal/messages/riak_set_clientid-internal.h#L26

bookshelfdave commented 10 years ago

Messages with custom requests: