summaryrefslogtreecommitdiff
path: root/extra/perror.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/perror.c')
-rw-r--r--extra/perror.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/perror.c b/extra/perror.c
index af5d95d3c5b..8621bed3e11 100644
--- a/extra/perror.c
+++ b/extra/perror.c
@@ -419,6 +419,8 @@ int main(int argc,char *argv[])
if (unknown_error)
free(unknown_error);
+ my_handler_error_unregister();
+ my_end(0);
exit(error);
return error;
}