]> granicus.if.org Git - sudo/commitdiff
Fix potential memory leak on reallocarray() error. Coverity CID 169639
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 23 May 2017 19:26:54 +0000 (13:26 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 23 May 2017 19:26:54 +0000 (13:26 -0600)
lib/util/event_select.c

index b6380faecab9eea62a27197851641b24f6120df9..1b7f28aee830d7b7f3e3ef76ba1be58032727764 100644 (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);
        }