[sr-dev] git:master:bda4f0a8: dmq_usrloc: remove useless condition
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jul 27 11:35:19 CEST 2017
Module: kamailio
Branch: master
Commit: bda4f0a8f8c7f65360fa73f51fb4fac289a8d334
URL: https://github.com/kamailio/kamailio/commit/bda4f0a8f8c7f65360fa73f51fb4fac289a8d334
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/bda4f0a8f8c7f65360fa73f51fb4fac289a8d334.diff
Patch: https://github.com/kamailio/kamailio/commit/bda4f0a8f8c7f65360fa73f51fb4fac289a8d334.patch
---
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) {
More information about the sr-dev
mailing list