diff --git a/src/uuid/version3.c b/src/uuid/version3.c index 3033fa2..f25e2d9 100644 --- a/src/uuid/version3.c +++ b/src/uuid/version3.c @@ -61,6 +61,8 @@ uuidVersion3(const unsigned char * name, size_t nname, Uuid nsid) MD5_Update(&ctx, name, nname); MD5_Final(hash, &ctx); + delete(net_nsid); + _uuidFormat3or5(uuid, hash, 3); return uuid; diff --git a/src/uuid/version5.c b/src/uuid/version5.c index 2fb4d6f..0274fcb 100644 --- a/src/uuid/version5.c +++ b/src/uuid/version5.c @@ -61,6 +61,8 @@ uuidVersion5(const unsigned char * name, size_t nname, Uuid nsid) SHA1_Update(&ctx, name, nname); SHA1_Final(hash, &ctx); + delete(net_nsid); + _uuidFormat3or5(uuid, hash, 5); return uuid;