Changeset 88e870e in mainline


Ignore:
Timestamp:
2010-01-26T17:53:40Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9bddf37
Parents:
e856c34
Message:

Do not free() node's data area if it was not allocated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    re856c34 r88e870e  
    317317        hash_table_remove(&nodes, key, 2);
    318318
    319         if (nodep->type == TMPFS_FILE)
     319        if ((nodep->type == TMPFS_FILE) && (nodep->data))
    320320                free(nodep->data);
    321321        free(nodep->bp);
Note: See TracChangeset for help on using the changeset viewer.