Changeset f52ce72 in mainline


Ignore:
Timestamp:
2019-02-10T20:49:45Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
8f18f1e
Parents:
5f39027
Message:

Make sure rndgen_destroy() always gets called

The original implementation would not call
rndgen_destroy if the uuid was successfully
generated. Which could create a potential
memory leak.

Conflicts:

uspace/lib/c/generic/uuid.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/uuid.c

    r5f39027 rf52ce72  
    6767        uuid->b[6] = (uuid->b[6] & 0x4F) | 0x40;
    6868        uuid->b[8] = (uuid->b[8] & 0xBF) | 0xB0;
    69 
    70         return EOK;
     69       
     70        rc = EOK;
    7171error:
    7272        rndgen_destroy(rndgen);
Note: See TracChangeset for help on using the changeset viewer.