From: Todd C. Miller Date: Tue, 23 May 2017 19:26:54 +0000 (-0600) Subject: Fix potential memory leak on reallocarray() error. Coverity CID 169639 X-Git-Tag: SUDO_1_8_21^2~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20a0fa12848ee4ff69153da83e0e7ad6cd4ae23f;p=sudo Fix potential memory leak on reallocarray() error. Coverity CID 169639 --- diff --git a/lib/util/event_select.c b/lib/util/event_select.c index b6380faec..1b7f28aee 100644 --- a/lib/util/event_select.c +++ b/lib/util/event_select.c @@ -103,6 +103,7 @@ sudo_ev_add_impl(struct sudo_event_base *base, struct sudo_event *ev) free(rfds_in); free(wfds_in); free(rfds_out); + free(wfds_out); debug_return_int(-1); }