summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-02-03 15:48:12 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2017-02-03 15:48:12 (GMT)
commit4729f01919b7ba3f99abfea8900931616fbb8320 (patch)
tree0227a71c5172847c14853263b4f922b4f90191ff
parentcb99ab8db4246f28e4bbf25f4e1ef7716473602a (diff)
downloadlibcss-4729f01919b7ba3f99abfea8900931616fbb8320.tar.gz
libcss-4729f01919b7ba3f99abfea8900931616fbb8320.tar.bz2
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.
-rw-r--r--src/select/select.c1
1 files changed, 0 insertions, 1 deletions
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;