Complete cleanup in error path

Signed-off-by: Michal Čihař <michal@cihar.com>
Free after use

Signed-off-by: Michal Čihař <michal@cihar.com>
Initialize timezone property

Signed-off-by: Michal Čihař <michal@cihar.com>