Module: kamailio
Branch: master
Commit: 29510872607deb3238411b358c422d004fb307b7
URL:
https://github.com/kamailio/kamailio/commit/29510872607deb3238411b358c422d0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-07-23T11:57:48+02:00
erlang: init xavps for safety destroy on error
---
Modified: src/modules/erlang/pv_tuple.c
---
Diff:
https://github.com/kamailio/kamailio/commit/29510872607deb3238411b358c422d0…
Patch:
https://github.com/kamailio/kamailio/commit/29510872607deb3238411b358c422d0…
---
diff --git a/src/modules/erlang/pv_tuple.c b/src/modules/erlang/pv_tuple.c
index d25b98caea9..22fc7863dfe 100644
--- a/src/modules/erlang/pv_tuple.c
+++ b/src/modules/erlang/pv_tuple.c
@@ -56,8 +56,8 @@ int pv_tuple_set(
sr_xavp_t *tuples_root;
sr_xavp_t *tuple;
sr_xavp_t *th, *new, *old, *prv = NULL;
- sr_xavp_t *tuple_xavp;
- sr_xavp_t *elem_xavp;
+ sr_xavp_t *tuple_xavp = NULL;
+ sr_xavp_t *elem_xavp = NULL;
sr_xval_t tuple_val;
pv_param_t p;
pv_value_t empty;