]> Dogcows Code - chaz/p5-File-KDBX/blobdiff - lib/File/KDBX/Safe.pm
Be sure to not lose $@ when loading KDBX files
[chaz/p5-File-KDBX] / lib / File / KDBX / Safe.pm
index 0e445c619154f95692be39b24062fbc150c8a500..8e307c25743f6753db2f9766cdd755047990c69e 100644 (file)
@@ -48,7 +48,7 @@ sub new {
     return $self;
 }
 
-sub DESTROY { !in_global_destruction and $_[0]->unlock }
+sub DESTROY { local ($., $@, $!, $^E, $?); !in_global_destruction and $_[0]->unlock }
 
 =method clear
 
This page took 0.021154 seconds and 4 git commands to generate.