Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
yigithanyigit committed Sep 12, 2024
1 parent 36d220c commit 0bc31d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libvmaf/src/metadata_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ int vmaf_metadata_destroy(VmafCallbackList *metadata)
VmafCallbackItem *iter = metadata->head;
while (iter) {
VmafCallbackItem *next = iter->next;
free(iter->metadata_cfg.feature_name);
if (iter->metadata_cfg.feature_name)
free(iter->metadata_cfg.feature_name);
free(iter);
iter = next;
}
Expand Down
2 changes: 1 addition & 1 deletion libvmaf/test/test_propagate_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static char *test_propagate_metadata_append()
int err = vmaf_metadata_init(&propagate_metadata);
mu_assert("problem during vmaf_propagate_metadata_init", !err);

VmafMetadataConfiguration metadata_config;
VmafMetadataConfiguration metadata_config = {0};
metadata_config.callback = set_meta;
metadata_config.data = NULL;

Expand Down

0 comments on commit 0bc31d1

Please sign in to comment.