77637b9478
Fix saving to an NFS target. OBS-URL: https://build.opensuse.org/request/show/505675 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=134
28 lines
789 B
Diff
28 lines
789 B
Diff
From: Petr Tesarik <ptesarik@suse.com>
|
|
Date: Thu Jun 22 14:31:26 2017 +0200
|
|
Subject: Invoke subcommand destructors on exit
|
|
References: bsc#1045541
|
|
Upstream: v0.8.17
|
|
Git-commit: ff813cdc274caf7c006d438dbf30d83413bb896e
|
|
|
|
To execute the destructor for a subcommand, the object must be
|
|
explicitly freed in KdumpTool destructor. This fixes a bug that
|
|
NFS shares are not unmounted on exit.
|
|
|
|
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
|
|
|
|
---
|
|
kdumptool/kdumptool.cc | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/kdumptool/kdumptool.cc
|
|
+++ b/kdumptool/kdumptool.cc
|
|
@@ -67,6 +67,7 @@ KdumpTool::~KdumpTool()
|
|
throw ()
|
|
{
|
|
Debug::debug()->trace("KdumpTool::~KdumpTool()");
|
|
+ delete m_subcommand;
|
|
}
|
|
|
|
// -----------------------------------------------------------------------------
|