dmq_usrloc: remove useless condition
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 09:10:56 +0000 (11:10 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 09:10:56 +0000 (11:10 +0200)
src/modules/dmq_usrloc/usrloc_sync.c

index 9260bb2..de01bc2 100644 (file)
@@ -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) {