Memory leaks fixed

^CSignal caught. Exiting gracefully.

==29365==
==29365== HEAP SUMMARY:
==29365==     in use at exit: 308,954 bytes in 1,226 blocks
==29365==   total heap usage: 321,177 allocs, 319,951 frees, 11,599,206 bytes allocated
==29365==
==29365== LEAK SUMMARY:
==29365==    definitely lost: 0 bytes in 0 blocks
==29365==    indirectly lost: 0 bytes in 0 blocks
==29365==      possibly lost: 133,147 bytes in 328 blocks
==29365==    still: reachable: 175,807 bytes in 898 blocks
==29365==         suppressed: 0 bytes in 0 blocks
==29365== Reachable blocks (those to which a pointer was found) are not shown.
==29365== To see them, rerun with: --leak-check=full --show-reachable=yes
==29365==
==29365== For counts of detected and suppressed errors, rerun with: -v
==29365== ERROR SUMMARY: 191 errors from 191 contexts (suppressed: 2 from 2)

Signed-off-by: Marek Timko <marek.timko@ixonos.com>
Merge branch 'memleaks' of github.com:timkoma/automotive-message-broker into memleaks