test/buffer: fix leak in test_evbuffer_prepend()

This commit is contained in:
Azat Khuzhin 2016-06-17 15:54:31 +03:00
parent e7d1e3926b
commit c08d90ba5a

View File

@ -1950,6 +1950,7 @@ test_evbuffer_prepend(void *ptr)
evbuffer_drain(buf2, 3);
end:
free(buffer);
if (buf1)
evbuffer_free(buf1);
if (buf2)