Closed burlog closed 4 years ago
Steps to reproduce:
#include <aerospike/as_arraylist.h> int main(int argc, char *argv[]) { as_arraylist list; as_arraylist_init(&list, 0, 8); as_arraylist_append_int64(&list, 3); as_arraylist_destroy(&list); }
The static function as_arraylist_ensure in modules/common/src/main/aerospike/as_arraylist.c should probably also ensure that the free is set to true.
as_arraylist_ensure
modules/common/src/main/aerospike/as_arraylist.c
free
This leak will be fixed in the next release. The workaround is to not set initial capacity to zero.
C client 4.6.9 has been released.
https://www.aerospike.com/download/client/c/4.6.9/
Steps to reproduce:
The static function
as_arraylist_ensure
inmodules/common/src/main/aerospike/as_arraylist.c
should probably also ensure that thefree
is set to true.