bucket: Fix scheme ref leak in __ast_bucket_scheme_register().

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/78/78/1
Richard Mudgett 12 years ago
parent 57967ec04a
commit f2d75eb74b

@ -254,7 +254,7 @@ int __ast_bucket_scheme_register(const char *name, struct ast_sorcery_wizard *bu
bucket_file_destroy_cb destroy_cb, struct ast_module *module)
{
SCOPED_AO2WRLOCK(lock, schemes);
struct ast_bucket_scheme *scheme;
RAII_VAR(struct ast_bucket_scheme *, scheme, NULL, ao2_cleanup);
if (ast_strlen_zero(name) || !bucket || !file ||
!bucket->create || !bucket->delete || !bucket->retrieve_id ||

Loading…
Cancel
Save