Blob Blame Raw
From 96c50b9c18aabf675e23f6df3ec584610ae5019a Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Fri, 17 Jul 2015 10:25:50 +0200
Subject: [PATCH] ccpp: do not crash if generate_core_backtrace fails

Add a missing return statement in the error code execution path.

Related: rhbz#1243791

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/hooks/abrt-hook-ccpp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
index 8ccef06..809b45e 100644
--- a/src/hooks/abrt-hook-ccpp.c
+++ b/src/hooks/abrt-hook-ccpp.c
@@ -426,6 +426,7 @@ static void create_core_backtrace(pid_t tid, const char *executable, int signal_
     {
         log("Failed to create core_backtrace: %s", error_message);
         free(error_message);
+        return;
     }
 
     dd_save_text(dd, FILENAME_CORE_BACKTRACE, core_bt);
-- 
2.4.3