Changeset 2527b1d5 in mainline for uspace/srv/fs/minixfs/mfs_dentry.c


Ignore:
Timestamp:
2011-06-28T18:40:20Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efa5fa1
Parents:
a5bad72
Message:

Fix memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_dentry.c

    ra5bad72 r2527b1d5  
    165165                        d_info->d_inum = 0;
    166166                        r = write_dentry(d_info);
     167                        free(d_info);
    167168                        return r;
    168169                }
     170                free(d_info);
    169171        }
    170172
     
    207209        if (!empty_dentry_found) {
    208210                r = inode_grow(mnode, sbi->dirsize);
    209                 if (r != EOK)
    210                         return r;
     211                on_error(r, goto out);
    211212
    212213                r = read_directory_entry(mnode, &d_info, i);
    213                 if (r != EOK)
    214                         return r;
     214                on_error(r, goto out);
    215215
    216216                assert(d_info != NULL);
     
    223223        r = write_dentry(d_info);
    224224        free(d_info);
    225 
     225out:
    226226        return r;
    227227}
Note: See TracChangeset for help on using the changeset viewer.