fixes memory leak in func_audiohookinherit.c
[asterisk/asterisk.git] / funcs / func_audiohookinherit.c
index 5dd937d..74f89b9 100644 (file)
@@ -23,7 +23,7 @@
  *
  * \brief Audiohook inheritance function
  *
- * \author \verbatim Mark Michelson <mmichelson@digium.com> \endverbatim
+ * \author Mark Michelson <mmichelson@digium.com>
  *
  * \ingroup functions
  */
@@ -40,7 +40,7 @@
        <function name = "AUDIOHOOK_INHERIT" language="en_US">
                <synopsis>
                        Set whether an audiohook may be inherited to another channel
-               </snopsis>
+               </synopsis>
                <syntax>
                        <parameter name="source" required="true">
                                <para>The built-in sources in Asterisk are</para>
@@ -126,6 +126,7 @@ static void audiohook_inheritance_fixup(void *data, struct ast_channel *old_chan
                ast_debug(3, "Moved audiohook %s from %s(%p) to %s(%p)\n",
                        audiohook->source, old_chan->name, old_chan, new_chan->name, new_chan);
        }
+       ast_free(datastore);
        return;
 }