Skip to content

Commit

Permalink
sqlops: free allocated pv list in case of error inside fixup_sql_pvqu…
Browse files Browse the repository at this point in the history
…ery()
  • Loading branch information
miconda committed Jul 21, 2017
1 parent bd5873c commit 8f460d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/sqlops/sqlops.c
Expand Up @@ -391,6 +391,7 @@ static int fixup_sql_pvquery(void** param, int param_no)
if (pvl->sname.setf == NULL)
{
LM_ERR("result variable [%d] is read-only\n", i);
free_pvname_list(res);
return E_UNSPEC;
}
i++;
Expand Down

0 comments on commit 8f460d1

Please sign in to comment.