From 1c735140b679c53d98110ef28c7be0f3909eb526 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 30 Nov 2014 11:20:57 +0000 Subject: [PATCH] fix resource leak on error (Coverity 1256245) --- content/fs_backing_store.c | 1 + 1 file changed, 1 insertion(+) diff --git a/content/fs_backing_store.c b/content/fs_backing_store.c index b2eaf781f..56091d1f9 100644 --- a/content/fs_backing_store.c +++ b/content/fs_backing_store.c @@ -1411,6 +1411,7 @@ fetch(nsurl *url, } } else if (datalen == 0) { /* caller provided a buffer but no length bad parameter */ + close(fd); return NSERROR_BAD_PARAMETER; }