From f3f88f899e460d4cb27783027e0e1e87d5b50a7d 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 06dd670..e285ff5 100644
--- a/src/hooks/abrt-hook-ccpp.c
+++ b/src/hooks/abrt-hook-ccpp.c
@@ -425,6 +425,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

