mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
leaks: check return values of libunwind calls
This commit is contained in:
parent
1ff80fbf52
commit
59885c2a92
1 changed files with 6 additions and 3 deletions
|
@ -194,10 +194,13 @@ generate_unwind_trace (void)
|
||||||
unw_cursor_t cursor;
|
unw_cursor_t cursor;
|
||||||
GString *trace;
|
GString *trace;
|
||||||
|
|
||||||
trace = g_string_new (NULL);
|
if (unw_getcontext (&ctx))
|
||||||
unw_getcontext (&ctx);
|
return NULL;
|
||||||
unw_init_local (&cursor, &ctx);
|
|
||||||
|
|
||||||
|
if (unw_init_local (&cursor, &ctx))
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
trace = g_string_new (NULL);
|
||||||
while (unw_step (&cursor) > 0) {
|
while (unw_step (&cursor) > 0) {
|
||||||
char name[BT_NAME_SIZE];
|
char name[BT_NAME_SIZE];
|
||||||
unw_word_t offp;
|
unw_word_t offp;
|
||||||
|
|
Loading…
Reference in a new issue