Module: kamailio
Branch: master
Commit: bda4f0a8f8c7f65360fa73f51fb4fac289a8d334
URL:
https://github.com/kamailio/kamailio/commit/bda4f0a8f8c7f65360fa73f51fb4fac…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-27T11:10:56+02:00
dmq_usrloc: remove useless condition
---
Modified: src/modules/dmq_usrloc/usrloc_sync.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bda4f0a8f8c7f65360fa73f51fb4fac…
Patch:
https://github.com/kamailio/kamailio/commit/bda4f0a8f8c7f65360fa73f51fb4fac…
---
diff --git a/src/modules/dmq_usrloc/usrloc_sync.c b/src/modules/dmq_usrloc/usrloc_sync.c
index 9260bb28ab..de01bc2062 100644
--- a/src/modules/dmq_usrloc/usrloc_sync.c
+++ b/src/modules/dmq_usrloc/usrloc_sync.c
@@ -198,8 +198,6 @@ void usrloc_get_all_ucontact(dmq_node_t* node)
goto done;
}
if (rval > 0) {
- if (buf != NULL)
- dmq_usrloc_free(buf);
len = rval * 2;
buf = dmq_usrloc_malloc(len);
if (buf == NULL) {