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

Changeset eefb653 in mainline


Ignore:
Timestamp:
2011-07-30T18:14:31Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
7a2be00
Parents:
6f7e0cd
Message:

mfs_destroy_node() should call mfs_node_put() even in case of error.

File:
1 edited

Legend:

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

    r6f7e0cd reefb653  
    10111011
    10121012        r = mfs_has_children(&has_children, fn);
    1013         on_error(r, return r);
     1013        on_error(r, goto out);
    10141014
    10151015        assert(!has_children);
     
    10231023        /*Free the entire inode content*/
    10241024        r = inode_shrink(mnode, mnode->ino_i->i_size);
    1025         on_error(r, return r);
     1025        on_error(r, goto out);
    10261026        r = mfs_free_inode(mnode->instance, mnode->ino_i->index);
    1027         on_error(r, return r);
    1028         r = mfs_node_put(fn);
    1029         on_error(r, return r);
     1027        on_error(r, goto out);
    10301028
    10311029out:
     1030        mfs_node_put(fn);
    10321031        return r;
    10331032}
Note: See TracChangeset for help on using the changeset viewer.