Fix potential memory leak on reallocarray() error. Coverity CID 169639

This commit is contained in:
Todd C. Miller
2017-05-23 13:26:54 -06:00
parent b2770313c6
commit 20a0fa1284

View File

@@ -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);
}