mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
test/buffer: fix leak in test_evbuffer_prepend()
This commit is contained in:
parent
e7d1e3926b
commit
c08d90ba5a
@ -1950,6 +1950,7 @@ test_evbuffer_prepend(void *ptr)
|
||||
evbuffer_drain(buf2, 3);
|
||||
|
||||
end:
|
||||
free(buffer);
|
||||
if (buf1)
|
||||
evbuffer_free(buf1);
|
||||
if (buf2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user