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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user