Module: kamailio
Branch: master
Commit: 8f460d16e84b9bc0b01463113c6e7e79d297f64e
URL:
https://github.com/kamailio/kamailio/commit/8f460d16e84b9bc0b01463113c6e7e7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/8f460d16e84b9bc0b01463113c6e7e7…
Patch:
https://github.com/kamailio/kamailio/commit/8f460d16e84b9bc0b01463113c6e7e7…
---
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++;