Fixed backtrace symbols free

master
Xavier Arteaga 6 years ago committed by Xavier Arteaga
parent 01679dbc8d
commit bb26a42fb6

@ -20,6 +20,7 @@
*/ */
#include <execinfo.h> #include <execinfo.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
void srslte_backtrace_print(FILE* f) void srslte_backtrace_print(FILE* f)
{ {
@ -35,5 +36,6 @@ void srslte_backtrace_print(FILE* f)
for (int i = 1; i < size; i++) { for (int i = 1; i < size; i++) {
fprintf(f, "\t%s\n", symbols[i]); fprintf(f, "\t%s\n", symbols[i]);
} }
free(symbols);
} }
} }

Loading…
Cancel
Save