mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Merge "ast_bt_get_symbols: Prevent double-free."
This commit is contained in:
@@ -172,6 +172,7 @@ char **__ast_bt_get_symbols(void **addresses, size_t num_frames)
|
|||||||
if (bfdobj) {
|
if (bfdobj) {
|
||||||
bfd_close(bfdobj);
|
bfd_close(bfdobj);
|
||||||
ast_std_free(syms);
|
ast_std_free(syms);
|
||||||
|
syms = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Default output, if we cannot find the information within BFD */
|
/* Default output, if we cannot find the information within BFD */
|
||||||
|
|||||||
Reference in New Issue
Block a user