From 3300067ba38364f228e79713dbcbb32758b3a252 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Sun, 27 Oct 2013 01:55:58 +0000 Subject: [PATCH] delete temporary uuid data structures. --- src/uuid/version3.c | 2 ++ src/uuid/version5.c | 2 ++ 2 files changed, 4 insertions(+) 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;