MALLOC_DEBUG: Fix some misuses of free() when MALLOC_DEBUG is enabled.
* There were several places in ARI where an external library was mallocing memory that must always be released with free(). When MALLOC_DEBUG is enabled, free() is redirected to the MALLOC_DEBUG version. Since the external library call still uses the normal malloc(), MALLOC_DEBUG complains that the freed memory block is not registered and will not free it. These cases must use ast_std_free(). * Changed calls to asprintf() and vasprintf() to the equivalent ast_asprintf() and ast_vasprintf() versions respectively. ........ Merged revisions 400270 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- apps/app_stack.c 1 addition, 2 deletionsapps/app_stack.c
- main/json.c 2 additions, 2 deletionsmain/json.c
- main/stasis_cache.c 2 additions, 2 deletionsmain/stasis_cache.c
- main/utils.c 7 additions, 6 deletionsmain/utils.c
- res/res_ari.c 2 additions, 2 deletionsres/res_ari.c
- res/stasis_recording/stored.c 10 additions, 1 deletionres/stasis_recording/stored.c
Loading
Please register or sign in to comment