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:
parent
8284716e6a
commit
8a86efc30e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user