sw-collector: Fix memory leak after failing to open DB

This commit is contained in:
Tobias Brunner 2017-08-08 15:30:44 +02:00
parent d093488b96
commit 0392f76804
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ sw_collector_db_t *sw_collector_db_create(char *uri)
if (!this->db)
{
DBG1(DBG_IMC, "opening database URI '%s' failed", uri);
free(this);
return NULL;
}