Revert "daemon: add upload-tar service."
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index e70ef0ae0fe58671a35b71a55fbf81425ee84581..aab14fc107353099756403c1bf08a0786e184d98 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -348,10 +348,8 @@ void unlock_ref(struct ref_lock *lock)
                if (lock->lk)
                        rollback_lock_file(lock->lk);
        }
-       if (lock->ref_file)
-               free(lock->ref_file);
-       if (lock->log_file)
-               free(lock->log_file);
+       free(lock->ref_file);
+       free(lock->log_file);
        free(lock);
 }