mfabik / rpms / satyr

Forked from rpms/satyr 3 years ago
Clone

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

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