Merge pull request #1947 from ethomson/double_free_pkt don't double free pkt
diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c
index 651901b..4e9e112 100644
--- a/src/transports/smart_protocol.c
+++ b/src/transports/smart_protocol.c
@@ -261,7 +261,7 @@ static int wait_while_ack(gitno_buffer *buf)
(pkt->status != GIT_ACK_CONTINUE ||
pkt->status != GIT_ACK_COMMON)) {
git__free(pkt);
- break;
+ return 0;
}
}