Merged revisions 73985 via svnmerge from
[asterisk/asterisk.git] / funcs / func_devstate.c
index cf60705..6c3d8e9 100644 (file)
@@ -24,7 +24,7 @@
  *
  * \ingroup functions
  *
  *
  * \ingroup functions
  *
- * \note Props go out to Ahrimanes in #asterisk for requesting this at 4:30 AM
+ * \note Props go out to Ahrimanes in \#asterisk for requesting this at 4:30 AM
  *       when I couldn't sleep.  :)
  */
 
  *       when I couldn't sleep.  :)
  */
 
@@ -187,7 +187,7 @@ static int unload_module(void)
 
        AST_RWLIST_WRLOCK(&custom_devices);
        while ((dev = AST_RWLIST_REMOVE_HEAD(&custom_devices, entry)))
 
        AST_RWLIST_WRLOCK(&custom_devices);
        while ((dev = AST_RWLIST_REMOVE_HEAD(&custom_devices, entry)))
-               free(dev);
+               ast_free(dev);
        AST_RWLIST_UNLOCK(&custom_devices);
 
        return res;
        AST_RWLIST_UNLOCK(&custom_devices);
 
        return res;