Changeset 593585df in mainline


Ignore:
Timestamp:
2010-01-30T17:55:31Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7efc517
Parents:
64aed80
Message:

Do not leak u in fat_idx_init_by_dev_handle().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_idx.c

    r64aed80 r593585df  
    531531        unused_initialize(u, dev_handle);
    532532        fibril_mutex_lock(&unused_lock);
    533         if (!unused_find(dev_handle, false))
     533        if (!unused_find(dev_handle, false)) {
    534534                list_append(&u->link, &unused_head);
    535         else
     535        } else {
     536                free(u);
    536537                rc = EEXIST;
     538        }
    537539        fibril_mutex_unlock(&unused_lock);
    538540        return rc;
Note: See TracChangeset for help on using the changeset viewer.