OSSP CVS Repository

ossp - Check-in [5175]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5175
Date: 2005-Sep-20 22:29:10 (local)
2005-Sep-20 20:29:10 (UTC)
User:rse
Branch:
Comment: Plug memory leak in PRNG sub-library. Detected by valgrind(1).
Tickets:
Inspections:
Files:
ossp-pkg/uuid/ChangeLog      1.89 -> 1.90     3 inserted, 0 deleted
ossp-pkg/uuid/uuid_prng.c      1.8 -> 1.9     3 inserted, 0 deleted

ossp-pkg/uuid/ChangeLog 1.89 -> 1.90

--- ChangeLog    2005/09/02 18:16:13     1.89
+++ ChangeLog    2005/09/20 20:29:10     1.90
@@ -13,6 +13,9 @@
 
   Changes between 1.3.0 and 1.3.1 (02-Sep-2005 to xx-xxx-2005)
 
+   o Plug memory leak in PRNG sub-library.
+     [Ralf S. Engelschall]
+
    o Add VPATH/srcdir support for at the default 
      build procedure plus at least C++ and DCE build options.
      [Ralf S. Engelschall]


ossp-pkg/uuid/uuid_prng.c 1.8 -> 1.9

--- uuid_prng.c  2005/08/30 19:25:04     1.8
+++ uuid_prng.c  2005/09/20 20:29:10     1.9
@@ -161,6 +161,9 @@
     if (prng->dev != -1)
         close(prng->dev);
 
+    /* destroy MD5 engine */
+    md5_destroy(prng->md5);
+
     /* free object */
     free(prng);
 

CVSTrac 2.0.1