We can only get to cleanup: through fp being NULL due to fopen failing or
normal execution when fclose is called.

Signed-off-by: Allan McRae <[email protected]>
---
 lib/libalpm/be_local.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c
index 0771aaf..2454cdc 100644
--- a/lib/libalpm/be_local.c
+++ b/lib/libalpm/be_local.c
@@ -1036,11 +1036,6 @@ int _alpm_local_db_write(alpm_db_t *db, alpm_pkg_t 
*info, alpm_dbinfrq_t inforeq
 
 cleanup:
        umask(oldmask);
-
-       if(fp) {
-               fclose(fp);
-       }
-
        return retval;
 }
 
-- 
2.2.1

Reply via email to