bo: Free event_y in case of error to prevent memory leak (CID ##1160682)
commit9c56502e064b7896207a80e45c519ad4847e231c
authorBryce Harrington <bryce@bryceharrington.org>
Tue, 12 Jun 2018 21:23:40 +0000 (12 14:23 -0700)
committerBryce Harrington <bryce@bryceharrington.org>
Wed, 13 Jun 2018 22:21:50 +0000 (13 15:21 -0700)
tree70704f8e6ed86cbcae6881746829a0dc985639ce
parent1c3ecfac133e5f284934fef9af988405e24347da
bo: Free event_y in case of error to prevent memory leak (CID ##1160682)

If the call to _cairo_malloc_ab_plus_c() fails, it returns an error
without first freeing event_y.

Coverity ID: #1160682
Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
Reviewed-By: Uli Schlachter <psychon@znc.in>
src/cairo-bentley-ottmann.c