mfabik / rpms / satyr

Forked from rpms/satyr 3 years ago
Clone

Blame SOURCES/satyr-0.13-dont-free-gdb-stacktrace.patch

f41043
From 969aedadec7f1f693f53ddaf8dcb1f1d59d5ac72 Mon Sep 17 00:00:00 2001
f41043
From: Martin Milata <mmilata@redhat.com>
f41043
Date: Tue, 23 Sep 2014 18:22:27 +0200
f41043
Subject: [SATYR PATCH] Don't free gdb stacktrace if no crash thread found
f41043
f41043
Possibly related to rhbz#1145697.
f41043
f41043
Signed-off-by: Martin Milata <mmilata@redhat.com>
f41043
---
f41043
 lib/gdb_stacktrace.c | 3 ---
f41043
 1 file changed, 3 deletions(-)
f41043
f41043
diff --git a/lib/gdb_stacktrace.c b/lib/gdb_stacktrace.c
f41043
index 8e73e21..3b2465a 100644
f41043
--- a/lib/gdb_stacktrace.c
f41043
+++ b/lib/gdb_stacktrace.c
f41043
@@ -558,10 +558,7 @@ sr_gdb_stacktrace_to_short_text(struct sr_gdb_stacktrace *stacktrace,
f41043
     crash_thread = sr_gdb_stacktrace_find_crash_thread(stacktrace);
f41043
 
f41043
     if (!crash_thread)
f41043
-    {
f41043
-        sr_gdb_stacktrace_free(stacktrace);
f41043
         return NULL;
f41043
-    }
f41043
 
f41043
     struct sr_gdb_thread *optimized_thread
f41043
         = sr_gdb_thread_get_optimized(crash_thread, stacktrace->libs,
f41043
-- 
f41043
1.9.3
f41043