Ignore:
Timestamp:
2011-12-08T20:13:04Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a885ab8
Parents:
b741888
Message:

exfat: Fix memory leak in the exfat_directory_sync_file() function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_directory.c

    rb741888 r055be8a  
    285285        for (i = 0; i < count; i++) {
    286286                rc = exfat_directory_get(di, &de);
    287                 if (rc != EOK)
    288                         return rc;
     287                if (rc != EOK) {
     288                        free(array);
     289                        return rc;
     290                }
    289291                array[i] = *de;
    290292                rc = exfat_directory_next(di);
     
    312314        for (i = 0; i < count; i++) {
    313315                rc = exfat_directory_get(di, &de);
    314                 if (rc != EOK)
    315                         return rc;
     316                if (rc != EOK) {
     317                        free(array);
     318                        return rc;
     319                }
    316320                *de = array[i];
    317321                di->b->dirty = true;
Note: See TracChangeset for help on using the changeset viewer.