Commit e87d9d3d4d8de9c048476387931c4ac57d1c2b73

Vicent Martí 2013-11-05T15:51:53

Merge pull request #1947 from ethomson/double_free_pkt 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;
 		}
 	}