diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-10-16 23:16:25 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-10-16 23:16:25 (GMT) |
commit | 84581571e138d5b7984b6d3198296013ec157d30 (patch) | |
tree | e4308cab1f1bf85feaaeb91e33874b7ef7ccbcbb /src/analysis/binaries | |
parent | 6f9563a0184e36fab8d0c2c38d151827784e331e (diff) |
Fixed many bugs using valgrind.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@269 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/binaries')
-rw-r--r-- | src/analysis/binaries/file.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/analysis/binaries/file.c b/src/analysis/binaries/file.c index 0be1fd7..46307fb 100644 --- a/src/analysis/binaries/file.c +++ b/src/analysis/binaries/file.c @@ -162,7 +162,6 @@ GLoadedBinary *g_file_binary_new_from_file(const char *filename) { GFileBinary *result; /* Adresse à retourner */ GLoadedBinary *loaded; /* Version parente */ - char *tmp; /* Nom de fichier modifiable */ result = g_object_new(G_TYPE_FILE_BINARY, NULL); loaded = G_LOADED_BINARY(result); @@ -171,10 +170,8 @@ GLoadedBinary *g_file_binary_new_from_file(const char *filename) result->filename = strdup(filename); - tmp = strdup(filename); - loaded->format = G_EXE_FORMAT(load_new_format(FMT_EXEC, tmp, + loaded->format = G_EXE_FORMAT(load_new_format(FMT_EXEC, filename, &loaded->bin_data, &loaded->bin_length)); - free(tmp); if (loaded->format == NULL) { |