mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +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;
|
||||
GString *trace;
|
||||
|
||||
trace = g_string_new (NULL);
|
||||
unw_getcontext (&ctx);
|
||||
unw_init_local (&cursor, &ctx);
|
||||
if (unw_getcontext (&ctx))
|
||||
return NULL;
|
||||
|
||||
if (unw_init_local (&cursor, &ctx))
|
||||
return NULL;
|
||||
|
||||
trace = g_string_new (NULL);
|
||||
while (unw_step (&cursor) > 0) {
|
||||
char name[BT_NAME_SIZE];
|
||||
unw_word_t offp;
|
||||
|
|
Loading…
Reference in a new issue