summaryrefslogtreecommitdiff
path: root/main/config.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-11-30 19:34:47 +0000
committerRussell Bryant <russell@russellbryant.com>2007-11-30 19:34:47 +0000
commitfac74808203c697677a87d34ccc409a3fe203a95 (patch)
tree7a9b4cd5fcd7c6762668e03902ccc2b5f07e8343 /main/config.c
parent45f98e541997648441c9c33175ddb7ef48f96ab2 (diff)
Merged revisions 90348 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r90348 | russell | 2007-11-30 13:26:04 -0600 (Fri, 30 Nov 2007) | 8 lines Change the behavior of ao2_link(). Previously, in inherited a reference. Now, it automatically increases the reference count to reflect the reference that is now held by the container. This was done to be more consistent with ao2_unlink(), which automatically releases the reference held by the container. It also makes it so it is no longer possible for a pointer to be invalid after ao2_link() returns. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/config.c')
-rw-r--r--main/config.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c
index fc020c1b7..fe1e446c0 100644
--- a/main/config.c
+++ b/main/config.c
@@ -1431,7 +1431,6 @@ static void set_fn(char *fn, int fn_size, const char *file, const char *configfi
fx->lineno = 1;
*fi = fx;
ao2_link(fileset, fx);
- ao2_ref(fx,1); /* bump the ref count, so it looks like we just got the ref from find */
}
}