This is an automated email from the ASF dual-hosted git repository. pnoltes pushed a commit to branch feature/674-improve-properties in repository https://gitbox.apache.org/repos/asf/celix.git
commit 21731030e0387c631f3e9ed77ed0aa099a7af7b9 Author: Pepijn Noltes <[email protected]> AuthorDate: Sun Jan 21 19:35:29 2024 +0100 Fix memleak in celix_properties_setVersions --- libs/utils/src/properties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/utils/src/properties.c b/libs/utils/src/properties.c index d502cc2b..897e93c0 100644 --- a/libs/utils/src/properties.c +++ b/libs/utils/src/properties.c @@ -1298,7 +1298,7 @@ celix_status_t celix_properties_setVersions(celix_properties_t* properties, const char* key, const celix_version_t** values, size_t nrOfValues) { assert(values != NULL); celix_array_list_create_options_t opts = CELIX_EMPTY_ARRAY_LIST_CREATE_OPTIONS; - opts.simpleRemovedCallback = free; + opts.simpleRemovedCallback = celix_properties_destroyVersionCallback; opts.initialCapacity = nrOfValues; celix_autoptr(celix_array_list_t) list = celix_arrayList_createWithOptions(&opts); if (!list) {
