X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibelogind%2Fsd-event%2Fsd-event.c;h=c3673f08a65a0b1d8d8ff7b214fa442ff1630c03;hb=d0ca0df9f917c51b842f7925d5de64faf90c2508;hp=cfd5a55457758a7ceadd8ab9d0299af6f7920926;hpb=d22c4385791244b245652a6ddaeed4f20d3d1137;p=elogind.git diff --git a/src/libelogind/sd-event/sd-event.c b/src/libelogind/sd-event/sd-event.c index cfd5a5545..c3673f08a 100644 --- a/src/libelogind/sd-event/sd-event.c +++ b/src/libelogind/sd-event/sd-event.c @@ -732,6 +732,7 @@ static void event_unmask_signal_data(sd_event *e, struct signal_data *d, int sig /* If all the mask is all-zero we can get rid of the structure */ hashmap_remove(e->signal_data, &d->priority); + assert(!d->current); safe_close(d->fd); free(d); return;