Commit e31c450b7dd1b71ce09df5980e6df8229d934fdb

Nelson Elhage 2018-06-24T23:46:36

Fix another missing git_pkt_free

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c
index 9bf2883..dd2d27e 100644
--- a/src/transports/smart_protocol.c
+++ b/src/transports/smart_protocol.c
@@ -622,7 +622,9 @@ int git_smart__download_pack(
 			}
 		}
 
-		git__free(pkt);
+		if (pkt) {
+			git_pkt_free(pkt);
+		}
 		if (error < 0)
 			goto done;