media_cache: Fix reference leak with bucket file metadata

Change-Id: Ia0e4124110df613ce5fdfa9ef8780016ebaa52c6
This commit is contained in:
Sean Bright 2020-11-23 15:56:25 -05:00 committed by Friendly Automation
parent 159522003a
commit ddbf3a7f73
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ static void bucket_file_update_path(struct ast_bucket_file *bucket_file,
}
ast_free(mime_type);
}
ao2_ref(header, -1);
}
}