stun: removed obsolete DYN_BUF define condition
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 21 May 2020 08:04:31 +0000 (10:04 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 21 May 2020 08:04:31 +0000 (10:04 +0200)
src/modules/stun/kam_stun.c

index 9eb8230..fc09d3c 100644 (file)
@@ -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)
 {
 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);
        }
        if (res->msg.buf.s != NULL) {
                pkg_free(res->msg.buf.s);
        }