Module: kamailio
Branch: master
Commit: 43a2a78563499a4843f88e927a249b7972159e43
URL:
https://github.com/kamailio/kamailio/commit/43a2a78563499a4843f88e927a249b7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-21T10:04:31+02:00
stun: removed obsolete DYN_BUF define condition
---
Modified: src/modules/stun/kam_stun.c
---
Diff:
https://github.com/kamailio/kamailio/commit/43a2a78563499a4843f88e927a249b7…
Patch:
https://github.com/kamailio/kamailio/commit/43a2a78563499a4843f88e927a249b7…
---
diff --git a/src/modules/stun/kam_stun.c b/src/modules/stun/kam_stun.c
index 9eb823068b..fc09d3c6f4 100644
--- a/src/modules/stun/kam_stun.c
+++ b/src/modules/stun/kam_stun.c
@@ -928,10 +928,6 @@ static int reallock_buffer(struct stun_buffer* buffer, UINT_T len)
static void clean_memory(struct stun_msg* req,
struct stun_msg* res, struct stun_unknown_att* unknown)
{
-#ifdef DYN_BUF
- pkg_free(req->msg.buf.s);
-#endif
-
if (res->msg.buf.s != NULL) {
pkg_free(res->msg.buf.s);
}