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)
  • Loading branch information
miconda committed Aug 26, 2020
1 parent 4aeb071 commit aabb2b2
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 aabb2b2

Please sign in to comment.