diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-09 19:04:42 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-09 19:04:42 +0200 |
commit | 39d77b6cfa633b94a31de5ec387949a7c7b85623 (patch) | |
tree | 37dbbb2f84ff2e8d524cdf8ece16401e8955d6dd /lib/Plugins/KerneloopsScanner.cpp | |
parent | 08ec5a72cd334fffc8aa343ab48f4b6d1c88e3a7 (diff) | |
download | abrt-39d77b6cfa633b94a31de5ec387949a7c7b85623.tar.gz abrt-39d77b6cfa633b94a31de5ec387949a7c7b85623.tar.xz abrt-39d77b6cfa633b94a31de5ec387949a7c7b85623.zip |
fix the bug where lock file was not removed
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/KerneloopsScanner.cpp')
-rw-r--r-- | lib/Plugins/KerneloopsScanner.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Plugins/KerneloopsScanner.cpp b/lib/Plugins/KerneloopsScanner.cpp index 63460ba0..e1e32284 100644 --- a/lib/Plugins/KerneloopsScanner.cpp +++ b/lib/Plugins/KerneloopsScanner.cpp @@ -79,7 +79,6 @@ void CKerneloopsScanner::SaveOopsToDebugDump() update_client(_("Creating kernel oops crash reports...")); time_t t = time(NULL); - CDebugDump debugDump; std::list<COops> oopsList = m_pSysLog.GetOopsList(); m_pSysLog.ClearOopsList(); @@ -92,13 +91,13 @@ void CKerneloopsScanner::SaveOopsToDebugDump() try { + CDebugDump debugDump; debugDump.Create(path, 0); debugDump.SaveText(FILENAME_ANALYZER, "Kerneloops"); debugDump.SaveText(FILENAME_EXECUTABLE, "kernel"); debugDump.SaveText(FILENAME_KERNEL, oops.m_sVersion); debugDump.SaveText(FILENAME_PACKAGE, "not_applicable"); debugDump.SaveText(FILENAME_KERNELOOPS, oops.m_sData); - debugDump.Close(); } catch (CABRTException& e) { |