Commit Graph

5 Commits

Author SHA1 Message Date
Richard Mudgett
f2d75eb74b 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
2013-11-21 18:00:39 +00:00
Mark Michelson
82904b87f3 Resolve some memory leaks due to incorrect for loop / ao2 ref usage.
A common idiom in Asterisk is to due something like:

for (ao2_obj = list_beginning; ao2_obj = next_item; ao2_ref(ao2_obj, -1)) {
    ...do stuff...
}

This is nice because it automatically takes care of the object references
for you. However, there is a pitfall here. If a break statement is in the
for loop, then the current reference is not cleaned up. In some cases, this
is on purpose, but in others there is a leak. This commit fixes the leak
cases.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@401248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-10-18 18:33:35 +00:00
David M. Lee
594ef4e5ab Fixed bucket.c for systems where tv_usec is not an unsigned long.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@397673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-08-26 21:30:12 +00:00
Joshua Colp
9c713d12da Fix building of trunk.
Note: This is why I commit on the weekend.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-08-23 22:20:39 +00:00
Joshua Colp
dd33217762 Add the bucket API.
Bucket is a URI based API for the creation, retrieval, updating, and deletion
of "buckets" and files contained within them.

Review: https://reviewboard.asterisk.org/r/2715/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2013-08-23 21:49:47 +00:00