mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Consistent memory allocation by ast_bt_get_symbols.
Always use ast_alloc/ast_free. This is handled differently in trunk (r391012). Review: https://reviewboard.asterisk.org/r/2580/ ........ Merged revisions 396427 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@396441 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -411,7 +411,7 @@ void *ast_bt_destroy(struct ast_bt *bt);
|
||||
* \param addresses A list of addresses, such as the ->addresses structure element of struct ast_bt.
|
||||
* \param num_frames Number of addresses in the addresses list
|
||||
* \retval NULL Unable to allocate memory
|
||||
* \return List of strings
|
||||
* \return List of strings. Free the entire list with a single ast_free call.
|
||||
* \since 1.6.2.16
|
||||
*/
|
||||
char **ast_bt_get_symbols(void **addresses, size_t num_frames);
|
||||
|
||||
Reference in New Issue
Block a user