The previous patch has introduced a memory leak by always passing NULL
pointer to cynara_async_configuration_destroy instead of proper pointer.
Change-Id: I252e3c36b02e493f6cac6b4718edddb282d0c9eb
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
pollFds[1].events = 0;
cynara_async_configuration *p_conf = nullptr;
- auto confPtr = makeUnique(p_conf, cynara_async_configuration_destroy);
checkCynaraError(cynara_async_configuration_create(&p_conf),
"Cannot create cynara async configuration");
+ auto confPtr = makeUnique(p_conf, cynara_async_configuration_destroy);
+
checkCynaraError(cynara_async_configuration_set_cache_size(p_conf, CACHE_SIZE),
"Cannot set cynara async configuration cache size");
checkCynaraError(