mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
Merge branch 'ba/object-info'
Leakfix. * ba/object-info: protocol-caps.c: fix memory leak in send_info()
This commit is contained in:
commit
cd6a1fc8a2
|
@ -69,9 +69,10 @@ static void send_info(struct repository *r, struct packet_writer *writer,
|
|||
}
|
||||
}
|
||||
|
||||
packet_writer_write(writer, "%s",
|
||||
strbuf_detach(&send_buffer, NULL));
|
||||
packet_writer_write(writer, "%s", send_buffer.buf);
|
||||
strbuf_reset(&send_buffer);
|
||||
}
|
||||
strbuf_release(&send_buffer);
|
||||
}
|
||||
|
||||
int cap_object_info(struct repository *r, struct strvec *keys,
|
||||
|
|
Loading…
Reference in a new issue