Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide inline free(3) wrapper, so it's easier to plug the code into out memory usage tracking framework. #188

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

sobomax
Copy link
Contributor

@sobomax sobomax commented Jun 19, 2018

We use internal memory debug code which is basically set of #defines overriding memory management functions to collect information about caller tracking memory usage as well as to do some extra sanity checks around supplied pointers. Most of the libucl code fits into that framework neatly using just a single "-include rtpp_memdeb.h" processor argument, except two places in the ucl_emitter_utils, where the free function pointer is retrieved and saved explicitly. This little patch should make ucl code more friendly in this regards and be basically no-op for anyone else.

https://github.com/sippy/rtpproxy/blob/master/src/rtpp_memdeb.h

into out memory usage tracking framework.
@vstakhov vstakhov merged commit c078d8b into vstakhov:master Jun 21, 2018
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.

None yet

2 participants