Skip to content

Commit

Permalink
Fix memleak in celix_properties_setVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Jan 21, 2024
1 parent a555df9 commit 2173103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/src/properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2173103

Please sign in to comment.