mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
use a macro instead of an inline function, so that backtraces will report the caller of ast_frame_free() properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -385,10 +385,7 @@ struct ast_frame *ast_fralloc(char *source, int len);
|
|||||||
*/
|
*/
|
||||||
void ast_frame_free(struct ast_frame *fr, int cache);
|
void ast_frame_free(struct ast_frame *fr, int cache);
|
||||||
|
|
||||||
static void force_inline ast_frfree(struct ast_frame *fr)
|
#define ast_frfree(fr) ast_frame_free(fr, 1)
|
||||||
{
|
|
||||||
ast_frame_free(fr, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*! \brief Makes a frame independent of any static storage
|
/*! \brief Makes a frame independent of any static storage
|
||||||
* \param fr frame to act upon
|
* \param fr frame to act upon
|
||||||
|
Reference in New Issue
Block a user