summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-07-11 21:42:27 +0100
committerPascal Terjan <pterjan@mageia.org>2017-07-11 21:42:27 +0100
commit5e65bc97384f4b48bb01f4f5d81c1b698756e520 (patch)
tree107b3ce2f7c79ab18487bca0896c8129cd4ec571
parent7e6d4a17cd6fb8b872626ec2f2e780dd534af4d8 (diff)
downloadurpmi-5e65bc97384f4b48bb01f4f5d81c1b698756e520.tar
urpmi-5e65bc97384f4b48bb01f4f5d81c1b698756e520.tar.gz
urpmi-5e65bc97384f4b48bb01f4f5d81c1b698756e520.tar.bz2
urpmi-5e65bc97384f4b48bb01f4f5d81c1b698756e520.tar.xz
urpmi-5e65bc97384f4b48bb01f4f5d81c1b698756e520.zip
Workaround a segfault in gurpmi (mga#21167)
-rw-r--r--NEWS2
-rwxr-xr-xgurpmi22
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b668b8f1..cf1ef0e7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- workaround a segfault in gurpmi (mga#21167)
+
Version 8.109 - 5 June 2017
- translation updates
diff --git a/gurpmi2 b/gurpmi2
index 50726071..ca8d87f8 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -373,6 +373,8 @@ return_with_exit_code:
# Show postponed message before exiting
$urpm->{error}->($urpm::postponed_msg) if $urpm::postponed_code != 0;
+ # Workaround a segfault by explicitly deleting the window (mga#21167)
+ undef $mainw;
exit $exit_code;
}