Fix for 2 small bugs which prevnts run memmory test
Fix for 2 small bugs which prevnts run memmory test

Signed-off-by: Serhiy Stetskovych <170a965e6bdf93865ebdd616edfe8ab6de6ab3dc@gmail.com>

advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp