From: Liu Yuan <[email protected]> This is yet another leaker of slice_read.
Signed-off-by: Liu Yuan <[email protected]> Signed-off-by: MORITA Kazutaka <[email protected]> --- dog/farm/slice.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dog/farm/slice.c b/dog/farm/slice.c index 79fa859..77db771 100644 --- a/dog/farm/slice.c +++ b/dog/farm/slice.c @@ -96,6 +96,7 @@ void *slice_read(const unsigned char *sha1, size_t *outsize) if (!sbuf) goto err; strbuf_add(&buf, sbuf, size); + free(sbuf); *outsize += size; } -- 1.8.1.2 -- sheepdog mailing list [email protected] http://lists.wpkg.org/mailman/listinfo/sheepdog
