Fixing a memory leak. name needs to be freed since it's being strdup'd lower.
Appears to have been a copy paste error because this doesn't do what the api claims, and it also leaks the reference to the new node.
Fix improper handling of a double linked list that could have caused a memory leak.
Another location where mod_rtmp would leak memory.
More explicit and defensive code so if the init fails we know we handling this pointer safely, because  rc_config_init will free the pointer if there was a problem, but it will not set the pointer to NULL.
Removing unused code
If there is a problem reading the dictionary file, don't leak memory...
Removing logically dead code
Let's bit a bit safer when dereferencing pointers.