]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_periodic_hook.c: Cleanup module resources on failure.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 4 Oct 2018 18:13:24 +0000 (13:13 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 4 Oct 2018 19:38:12 +0000 (14:38 -0500)
commit77f151d9272c6b7ce1a0373e4886f2ba58e004d8
treea56a5e4756e5d83272d8aa87291a9b2c848e39be
parent6fd21a6af6ae68bcff04abf31b6f7fc548f77519
func_periodic_hook.c: Cleanup module resources on failure.

* Make load_module() cleanup if it failed to setup the module.

* Make unload_module() always return 0.  It is silly to fail unloading if
the hook function we try to unregister was not even registered.

Change-Id: I280fc6e8ba2a7ee2588ca01d870eebaf74b4ffe6
funcs/func_periodic_hook.c