Just in case resources with the same name are loaded
authorMark Spencer <markster@digium.com>
Thu, 19 Feb 2004 01:04:21 +0000 (01:04 +0000)
committerMark Spencer <markster@digium.com>
Thu, 19 Feb 2004 01:04:21 +0000 (01:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2197 65c4cc65-6c06-0410-ace0-fbb531ad65f3

loader.c

index 98ce7af..f16ca45 100755 (executable)
--- a/loader.c
+++ b/loader.c
@@ -136,6 +136,7 @@ int ast_unload_resource(char *resource_name, int force)
                                module_list = m->next;
                        dlclose(m->lib);
                        free(m);
                                module_list = m->next;
                        dlclose(m->lib);
                        free(m);
+                       break;
                }
                ml = m;
                m = m->next;
                }
                ml = m;
                m = m->next;