[sr-dev] git:master:8f460d16: sqlops: free allocated pv list in case of error inside fixup_sql_pvquery()
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jul 21 08:58:45 CEST 2017
Module: kamailio
Branch: master
Commit: 8f460d16e84b9bc0b01463113c6e7e79d297f64e
URL: https://github.com/kamailio/kamailio/commit/8f460d16e84b9bc0b01463113c6e7e79d297f64e
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-07-21T08:56:58+02:00
sqlops: free allocated pv list in case of error inside fixup_sql_pvquery()
---
Modified: src/modules/sqlops/sqlops.c
---
Diff: https://github.com/kamailio/kamailio/commit/8f460d16e84b9bc0b01463113c6e7e79d297f64e.diff
Patch: https://github.com/kamailio/kamailio/commit/8f460d16e84b9bc0b01463113c6e7e79d297f64e.patch
---
diff --git a/src/modules/sqlops/sqlops.c b/src/modules/sqlops/sqlops.c
index ce3f8730f7..502819e76a 100644
--- a/src/modules/sqlops/sqlops.c
+++ b/src/modules/sqlops/sqlops.c
@@ -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++;
More information about the sr-dev
mailing list