summaryrefslogtreecommitdiffstats
path: root/gurpmi2
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 /gurpmi2
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)
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi22
1 files changed, 2 insertions, 0 deletions
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;
}