Commit 08afdb57607ca94e4b6065a2a514f3138acb75f2

Joe Rabinoff 2018-12-04T10:59:25

Removed one null check

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/odb_loose.c b/src/odb_loose.c
index 5872a25..32be9cf 100644
--- a/src/odb_loose.c
+++ b/src/odb_loose.c
@@ -1028,12 +1028,11 @@ static int loose_backend__readstream(
 
 done:
 	if (error < 0) {
-                if(stream && stream->map.data)
+                if(stream) {
 		        git_futils_mmap_free(&stream->map);
-                if(stream)
    		        git_zstream_free(&stream->zstream);
-                if(stream)
                         git__free(stream);
+                }
                 if(hash_ctx) {
    		        git_hash_ctx_cleanup(hash_ctx);
 		        git__free(hash_ctx);