Fix gwbuf_clone

With this change, the test_clone() test in testbuffer.c no longer
causes a leak according to valgrind.
This commit is contained in:
Johan Wikman 2017-03-30 22:16:51 +03:00
parent 8284716e6a
commit 8a86efc30e

View File

@ -339,7 +339,7 @@ GWBUF* gwbuf_clone(GWBUF* buf)
while (clonebuf && buf->next)
{
buf = buf->next;
clonebuf->next = gwbuf_clone(buf);
clonebuf->next = gwbuf_clone_one(buf);
clonebuf = clonebuf->next;
}