logwriter: still free the unconsumed item during reloading configuration

Otherwise we have no chance to free this stuff.

Reported-by: Xufeng Zhang <xufeng.zhang@windriver.com>
Signed-off-by: Tusa Viktor <tusavik@gmail.com>
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
socket: Various leak fixes in afsocket module.

TransportMapper and SocketOptions structures are not embedded ones, so
they should be freed up, when freeing up drivers.

Reported-by: Xufeng Zhang <xufeng.zhang@windriver.com>
Signed-off-by: Viktor Tusa <tusavik@gmail.com>
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
Merge branch 'h/memory-leak-fixes' into 3.5/master