Skip to content

Commit 08afdb5

Browse files
committed
Removed one null check
1 parent 36f8074 commit 08afdb5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/odb_loose.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,12 +1028,11 @@ static int loose_backend__readstream(
10281028

10291029
done:
10301030
if (error < 0) {
1031-
if(stream && stream->map.data)
1031+
if(stream) {
10321032
git_futils_mmap_free(&stream->map);
1033-
if(stream)
10341033
git_zstream_free(&stream->zstream);
1035-
if(stream)
10361034
git__free(stream);
1035+
}
10371036
if(hash_ctx) {
10381037
git_hash_ctx_cleanup(hash_ctx);
10391038
git__free(hash_ctx);

0 commit comments

Comments
 (0)