In nsdb_construct_fsl_dn(), ber_memalloc(3) is used to allocate
some memory.  ber_memfree(3) should be used to release it.  This
oversight is probably harmless, because ber_memfree(3) is typically
a simple wrapper around free(3).

Signed-off-by: Chuck Lever <[email protected]>
---

 src/libnsdb/administrator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libnsdb/administrator.c b/src/libnsdb/administrator.c
index 23f38d9..1b46360 100644
--- a/src/libnsdb/administrator.c
+++ b/src/libnsdb/administrator.c
@@ -498,7 +498,7 @@ nsdb_construct_fsl_dn(const char *nce, const char 
*fsn_uuid, const char *fsl_uui
                                fsl_uuid, fsn_uuid, nce);
        if (len < 0 || (size_t)len > dn_len) {
                xlog(D_GENERAL, "%s: DN is too long", __func__);
-               free(dn);
+               ber_memfree(dn);
                return NULL;
        }
 


_______________________________________________
fedfs-utils-devel mailing list
[email protected]
https://oss.oracle.com/mailman/listinfo/fedfs-utils-devel

Reply via email to