summaryrefslogtreecommitdiffstats
path: root/src/plugins/abrt-action-rhtsupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/abrt-action-rhtsupport.c')
-rw-r--r--src/plugins/abrt-action-rhtsupport.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/abrt-action-rhtsupport.c b/src/plugins/abrt-action-rhtsupport.c
index 337adae1..d6d677ac 100644
--- a/src/plugins/abrt-action-rhtsupport.c
+++ b/src/plugins/abrt-action-rhtsupport.c
@@ -66,8 +66,12 @@ static void report_to_rhtsupport(
if (!login[0] || !password[0])
{
- errmsg = _("Empty login or password, please check RHTSupport.conf");
- goto ret;
+ free_crash_data(crash_data);
+ free(url);
+ free(login);
+ free(password);
+ error_msg_and_die(_("Empty login or password, please check RHTSupport.conf"));
+ return;
}
package = get_crash_item_content_or_NULL(crash_data, FILENAME_PACKAGE);