Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 0402bda5 in mainline


Ignore:
Timestamp:
2010-09-26T13:04:53Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
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.