Corey Farrell 4de95d4bf0 
	
	
	loader: Minor fix to module registration. ... 
			This protects the module loader itself against crashing if dlopen is
called on a module from outside loader.c.
* Expand scope of lock inside ast_module_register to include reading of
  resource_being_loaded.
* NULL check resource_being_loaded.
* Set resource_being_loaded NULL as soon as dlopen returns.  This fixes
  some error paths where it was not NULL'ed.
* Create module_destroy function to deduplicate code from
  ast_module_unregister and modules_shutdown.
* Resolve leak that occured if a module did not successfully register.
* Simplify checking for successful registration.
Change-Id: I40f07a315e55b92df4fc7faf525ed6d4f396e7d2 
		
	 
		2017-12-15 10:44:26 -05:00 
	 
	
	
	
		 
	
	
		
			
			
			
			
			
			2016-06-07 02:34:44 -05:00 
		 
	
		
			
			
			
			
			
			2017-08-01 15:44:29 -06:00 
		 
	
		
			
			
			
			
			
			2016-03-01 09:33:17 -07:00 
		 
	
		
			
			
			
			
			
			2017-11-20 15:02:21 -05:00 
		 
	
		
			
			
			
			
			
			2017-11-17 09:35:22 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2017-12-08 14:27:50 -05:00 
		 
	
		
			
			
			
			
			
			2017-11-20 15:05:14 -05:00 
		 
	
		
			
			
			
			
			
			2017-11-20 15:09:02 -05:00 
		 
	
		
			
			
			
			
			
			2017-08-01 15:44:29 -06:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2017-08-01 15:44:29 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2017-12-11 19:41:43 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2016-05-03 06:54:29 -06:00 
		 
	
		
			
			
			
			
			
			2016-06-08 13:00:23 +02:00 
		 
	
		
			
			
			
			
			
			2017-02-13 10:57:16 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2016-10-07 18:32:16 -04:00 
		 
	
		
			
			
			
			
			
			2016-10-07 18:32:16 -04:00 
		 
	
		
	
		
			
			
			
			
			
			2016-10-07 18:32:16 -04:00 
		 
	
		
			
			
			
			
			
			2017-03-30 13:49:49 -04:00 
		 
	
		
			
			
			
			
			
			2017-11-15 16:06:41 -06:00 
		 
	
		
			
			
			
			
			
			2017-03-15 17:43:54 -05:00 
		 
	
		
			
			
			
			
			
			2017-05-16 14:25:01 +00:00 
		 
	
		
			
			
			
			
			
			2017-10-13 09:51:09 -04:00 
		 
	
		
			
			
			
			
			
			2017-09-06 12:41:25 -05:00 
		 
	
		
			
			
			
			
			
			2017-12-06 07:38:39 -06:00 
		 
	
		
			
			
			
			
			
			2017-09-20 10:19:07 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2017-09-06 12:41:25 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2016-03-01 20:13:39 -06:00 
		 
	
		
			
			
			
			
			
			2017-11-20 15:25:57 -05:00 
		 
	
		
			
			
			
			
			
			2017-11-08 05:37:52 -07:00 
		 
	
		
			
			
			
			
			
			2016-10-13 18:11:37 -05:00 
		 
	
		
			
			
			
			
			
			2017-04-24 12:46:27 -04:00 
		 
	
		
			
			
			
			
			
			2017-09-25 11:22:34 -05:00 
		 
	
		
			
			
			
			
			
			2016-08-24 11:02:47 -05:00 
		 
	
		
			
			
			
			
			
			2017-11-21 09:47:40 -05:00 
		 
	
		
			
			
			
			
			
			2017-07-24 18:46:28 +00:00 
		 
	
		
			
			
			
			
			
			2017-10-26 11:48:23 -05:00 
		 
	
		
			
			
			
			
			
			2017-12-01 09:29:43 -05:00 
		 
	
		
			
			
			
			
			
			2017-12-01 12:13:33 -05:00 
		 
	
		
			
			
			
			
			
			2017-06-21 16:17:02 -05:00 
		 
	
		
			
			
			
			
			
			2016-04-22 16:44:04 -05:00 
		 
	
		
			
			
			
			
			
			2017-06-08 17:36:00 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2017-07-05 08:42:07 -04:00 
		 
	
		
	
		
			
			
			
			
			
			2017-12-10 12:41:51 -06:00 
		 
	
		
			
			
			
			
			
			2016-01-10 18:10:37 -05:00 
		 
	
		
			
			
			
			
			
			2016-05-31 18:07:40 -04:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2016-07-26 17:51:06 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2016-01-05 12:29:31 -06:00 
		 
	
		
			
			
			
			
			
			2015-04-09 12:56:30 +00:00 
		 
	
		
			
			
			
			
			
			2015-04-23 18:26:55 +02:00 
		 
	
		
			
			
			
			
			
			2017-10-12 12:17:45 -05:00 
		 
	
		
			
			
			
			
			
			2017-10-31 15:08:38 -05:00 
		 
	
		
			
			
			
			
			
			2017-05-16 14:25:01 +00:00 
		 
	
		
			
			
			
			
			
			2017-01-17 17:08:36 -06:00 
		 
	
		
			
			
			
			
			
			2017-01-17 17:08:36 -06:00 
		 
	
		
			
			
			
			
			
			2017-07-24 18:46:28 +00:00 
		 
	
		
			
			
			
			
			
			2017-11-06 16:12:12 -05:00 
		 
	
		
			
			
			
			
			
			2017-01-25 13:44:26 -06:00 
		 
	
		
			
			
			
			
			
			2017-05-30 15:08:05 -05:00 
		 
	
		
			
			
			
			
			
			2017-11-14 07:15:40 -06:00 
		 
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2015-04-17 15:57:10 -05:00 
		 
	
		
			
			
			
			
			
			2017-10-24 17:17:53 -04:00 
		 
	
		
			
			
			
			
			
			2017-09-28 15:47:55 -05:00 
		 
	
		
			
			
			
			
			
			2017-12-08 14:27:50 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2015-04-09 12:56:30 +00:00 
		 
	
		
			
			
			
			
			
			2016-09-20 08:00:14 -06:00 
		 
	
		
			
			
			
			
			
			2017-01-17 17:08:36 -06:00 
		 
	
		
			
			
			
			
			
			2017-11-06 11:46:06 -06:00 
		 
	
		
			
			
			
			
			
			2017-01-24 11:23:05 -06:00 
		 
	
		
			
			
			
			
			
			2017-11-19 15:19:46 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2017-12-15 10:44:26 -05:00 
		 
	
		
			
			
			
			
			
			2016-09-23 07:53:10 -05:00 
		 
	
		
			
			
			
			
			
			2017-05-08 15:27:04 -06:00 
		 
	
		
			
			
			
			
			
			2017-11-19 15:19:46 -05:00 
		 
	
		
			
			
			
			
			
			2016-11-14 17:02:00 -05:00 
		 
	
		
			
			
			
			
			
			2016-10-31 13:53:34 -05:00 
		 
	
		
			
			
			
			
			
			2015-05-26 15:32:45 -06:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2017-12-08 14:27:50 -05:00 
		 
	
		
			
			
			
			
			
			2015-04-17 15:57:10 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2017-12-06 23:35:53 -06:00 
		 
	
		
			
			
			
			
			
			2017-11-06 16:13:58 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2016-08-11 11:57:51 -05:00 
		 
	
		
			
			
			
			
			
			2017-08-10 14:27:15 -05:00 
		 
	
		
			
			
			
			
			
			2016-11-01 12:37:58 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2017-06-14 18:29:40 +02:00 
		 
	
		
			
			
			
			
			
			2017-05-31 13:22:12 -04:00 
		 
	
		
			
			
			
			
			
			2016-07-28 15:10:18 -05:00 
		 
	
		
			
			
			
			
			
			2017-02-13 10:57:16 -05:00 
		 
	
		
			
			
			
			
			
			2016-01-05 12:09:38 -05:00 
		 
	
		
			
			
			
			
			
			2016-01-05 12:07:43 -05:00 
		 
	
		
			
			
			
			
			
			2016-01-05 12:06:23 -05:00 
		 
	
		
			
			
			
			
			
			2016-01-04 17:26:40 -05:00 
		 
	
		
			
			
			
			
			
			2017-05-16 14:25:01 +00:00 
		 
	
		
	
		
			
			
			
			
			
			2017-11-15 16:06:41 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2016-09-21 20:03:37 +00:00 
		 
	
		
	
		
			
			
			
			
			
			2017-11-06 16:30:10 -05:00 
		 
	
		
			
			
			
			
			
			2017-07-21 17:04:31 -05:00 
		 
	
		
			
			
			
			
			
			2016-03-15 12:01:50 -05:00 
		 
	
		
			
			
			
			
			
			2017-03-29 15:27:01 +02:00 
		 
	
		
			
			
			
			
			
			2015-04-23 18:26:55 +02:00 
		 
	
		
	
		
	
		
	
		
	
		
	
		
			
			
			
			
			
			2017-11-13 15:08:50 -05:00 
		 
	
		
			
			
			
			
			
			2017-12-07 00:39:02 -05:00 
		 
	
		
			
			
			
			
			
			2017-02-07 18:12:17 +00:00 
		 
	
		
			
			
			
			
			
			2017-11-06 12:09:27 -06:00 
		 
	
		
			
			
			
			
			
			2016-01-05 12:29:31 -06:00 
		 
	
		
			
			
			
			
			
			2017-03-14 09:37:34 -05:00 
		 
	
		
			
			
			
			
			
			2017-12-11 14:14:16 -06:00 
		 
	
		
			
			
			
			
			
			2016-07-13 14:37:10 -05:00 
		 
	
		
			
			
			
			
			
			2016-06-07 18:57:36 -05:00 
		 
	
		
			
			
			
			
			
			2016-04-22 16:44:05 -05:00 
		 
	
		
			
			
			
			
			
			2016-07-06 07:22:46 -05:00 
		 
	
		
			
			
			
			
			
			2017-11-07 16:11:13 -06:00 
		 
	
		
	
		
			
			
			
			
			
			2016-04-04 18:07:18 -06:00 
		 
	
		
			
			
			
			
			
			2017-10-05 20:28:28 -05:00 
		 
	
		
			
			
			
			
			
			2017-08-10 14:27:15 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2017-01-13 21:30:53 -06:00 
		 
	
		
			
			
			
			
			
			2017-12-08 14:27:50 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2015-11-25 20:29:42 +01:00 
		 
	
		
			
			
			
			
			
			2017-05-24 14:56:14 -06:00 
		 
	
		
			
			
			
			
			
			2016-07-13 12:30:58 -04:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2017-12-07 09:52:04 -06:00 
		 
	
		
			
			
			
			
			
			2017-12-08 14:27:50 -05:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2017-12-08 14:27:50 -05:00 
		 
	
		
	
		
			
			
			
			
			
			2017-12-01 09:29:43 -05:00 
		 
	
		
			
			
			
			
			
			2015-11-06 14:45:19 +01:00