summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-11-05 15:51:53 -0800
committerVicent Martí <vicent@github.com>2013-11-05 15:51:53 -0800
commite87d9d3d4d8de9c048476387931c4ac57d1c2b73 (patch)
treef1c86a602b756cc0c4f65d44caed3e864b32ed63
parent73291aff6e695b13fa738c03cd344491c9ad24b3 (diff)
parent7616b8d3ce8d75b8221aa81f048178ef13c93c05 (diff)
downloadlibgit2-e87d9d3d4d8de9c048476387931c4ac57d1c2b73.tar.gz
Merge pull request #1947 from ethomson/double_free_pkt
don't double free pkt
-rw-r--r--src/transports/smart_protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/smart_protocol.c b/src/transports/smart_protocol.c
index 651901b1b..4e9e112f4 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;
}
}