Skip to content

Commit

Permalink
db_text: free pointer in case of error
Browse files Browse the repository at this point in the history
(cherry picked from commit bddf16d)
(cherry picked from commit aabb2b2)
  • Loading branch information
miconda committed Sep 8, 2020
1 parent 4f9a5cd commit 2d58162
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/db_text/dbt_base.c
Expand Up @@ -100,6 +100,7 @@ db1_con_t* dbt_init(const str* _sqlurl)
if (!DBT_CON_CONNECTION(_res))
{
LM_ERR("cannot get the link to database\n");
pkg_free(_res);
return NULL;
}

Expand Down

0 comments on commit 2d58162

Please sign in to comment.