Changeset 0402bda5 in mainline


Ignore:
Timestamp:
2010-09-26T13:04:53Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c213f6
Parents:
edba2b6f
Message:

Fix apparent memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/adt/measured_strings.c

    redba2b6f r0402bda5  
    161161                return ERROR_CODE;
    162162        }
     163
    163164        *data = malloc(lengths[count]);
    164165        if (!(*data)) {
     166                free(lengths);
    165167                return ENOMEM;
    166168        }
     
    330332        *data = malloc(lengths[count]);
    331333        if (!(*data)) {
     334                free(lengths);
    332335                return ENOMEM;
    333336        }
Note: See TracChangeset for help on using the changeset viewer.