summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/events/events_signal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/events/events_signal.c b/source4/lib/events/events_signal.c
index ace5e4b4bf..28702cecc9 100644
--- a/source4/lib/events/events_signal.c
+++ b/source4/lib/events/events_signal.c
@@ -249,6 +249,9 @@ int common_event_check_signal(struct event_context *ev)
sigaddset(&set, i);
sigprocmask(SIG_UNBLOCK, &set, NULL);
}
+ if (se->sa_flags & SA_RESETHAND) {
+ talloc_free(se);
+ }
continue;
}
#endif