Just in case resources with the same name are loaded
[asterisk/asterisk.git] / 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);
+                       break;
                }
                ml = m;
                m = m->next;