freemyipod r783 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r782‎ | r783 | r784 >
Date:13:30, 17 November 2011
Author:user890104
Status:new
Tags:
Comment:
emCOREFS: fix a memory leak in cache.c, thanks to cppcheck
Modified paths:
  • /emcore/trunk/tools/emcorefs/cache.c (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/emcorefs/cache.c
@@ -131,6 +131,7 @@
132132 cache_entry->name = new_name;
133133
134134 memcpy(emcore_dir_entry_cache + emcore_dir_cache_length, cache_entry, sizeof(*cache_entry));
 135+ free(cache_entry);
135136
136137 #ifdef DEBUG
137138 fprintf(stderr, "Inserting [%s] to cache\n", emcore_dir_entry_cache[emcore_dir_cache_length].name);