From 4729f01919b7ba3f99abfea8900931616fbb8320 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 3 Feb 2017 15:48:12 +0000 Subject: Select: Squash error-path leak. If we allocated a font-face array previously, and failed to extend it, then we failed to free it on the error path. --- src/select/select.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/select/select.c b/src/select/select.c index a44ef4a..f1c3637 100644 --- a/src/select/select.c +++ b/src/select/select.c @@ -1942,7 +1942,6 @@ static css_error _select_font_face_from_rule( new_faces = realloc(faces->font_faces, new_size); if (new_faces == NULL) { - faces->count = 0; return CSS_NOMEM; } faces->font_faces = new_faces; -- cgit v1.2.3