Logger, Config: Removed 2 memory leaks, found with valgrind.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>