Commit 7616b8d3ce8d75b8221aa81f048178ef13c93c05

Edward Thomson 2013-11-05T17:34:45

don't double free pkt

1
2
3
4
5
6
7
8
9
10
11
12
13
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;
 		}
 	}