Changeset b9e6205 in mainline


Ignore:
Timestamp:
2011-01-31T21:52:13Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0dfaa099
Parents:
37cf3792
Message:

Do not use memory after it was freed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/libblock.c

    r37cf3792 rb9e6205  
    624624                        unsigned long key = block->lba;
    625625                        hash_table_remove(&cache->block_hash, &key, 1);
     626                        free(block->data);
    626627                        free(block);
    627                         free(block->data);
    628628                        cache->blocks_cached--;
    629629                        fibril_mutex_unlock(&cache->lock);
Note: See TracChangeset for help on using the changeset viewer.