]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
media_cache: Fix reference leak with bucket file metadata
authorSean Bright <sean.bright@gmail.com>
Mon, 23 Nov 2020 20:56:25 +0000 (15:56 -0500)
committerJoshua Colp <jcolp@sangoma.com>
Thu, 3 Dec 2020 14:35:41 +0000 (08:35 -0600)
Change-Id: Ia0e4124110df613ce5fdfa9ef8780016ebaa52c6

main/media_cache.c

index 15f70d096d19992b32986341fc545cb99f9f07d4..b303643f5e7c71df43bb610e7ff3a79a7b03d460 100644 (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);
                        }
                }