summaryrefslogtreecommitdiff
path: root/src/transports
diff options
context:
space:
mode:
authorNelson Elhage <nelhage@nelhage.com>2018-06-24 23:46:36 +0000
committerNelson Elhage <nelhage@nelhage.com>2018-06-25 02:17:22 +0000
commite31c450b7dd1b71ce09df5980e6df8229d934fdb (patch)
treeea62610050a52b229a2ff13d61beb6460e51488f /src/transports
parentbf4c2c57ccbf57d0472a8f68ab223c85db0d177f (diff)
downloadlibgit2-e31c450b7dd1b71ce09df5980e6df8229d934fdb.tar.gz
Fix another missing git_pkt_free
Diffstat (limited to 'src/transports')
-rw-r--r--src/transports/smart_protocol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c
index 9bf2883d6..dd2d27ecd 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;