summaryrefslogtreecommitdiffstats
path: root/lib/plugins/RHTSupport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/RHTSupport.cpp')
-rw-r--r--lib/plugins/RHTSupport.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/plugins/RHTSupport.cpp b/lib/plugins/RHTSupport.cpp
index de6dc873..1caea094 100644
--- a/lib/plugins/RHTSupport.cpp
+++ b/lib/plugins/RHTSupport.cpp
@@ -235,10 +235,12 @@ string CReporterRHticket::Report(const map_crash_data_t& pCrashData,
|| full_write(tar_fd(tar), block, len512) != len512
|| tar_close(tar) != 0
) {
+ free(block);
retval = "can't create temporary file in "LOCALSTATEDIR"/run/abrt";
goto ret;
}
tar = NULL;
+ free(block);
}
{