diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-15 20:08:57 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-15 20:08:57 +0000 |
commit | 15fc692a8e33d3b3bf82e8c9ae7f4572baac6e63 (patch) | |
tree | 9638e29aa7f7e52938c01390081a134c642b7a02 /libcpp/files.c | |
parent | 57b3787917fb9d6711e03f20ca7fbea66a5ed5b6 (diff) | |
download | gcc-15fc692a8e33d3b3bf82e8c9ae7f4572baac6e63.tar.gz |
2012-10-15 Tobias Burnus <burnus@net-b.de>
* files.c (read_file_guts, _cpp_save_file_entries): Free memory
before returning.
* lex.c (warn_about_normalization): Ditto.
* mkdeps.c (deps_save): Ditto.
* pch.c (cpp_valid_state): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192474 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/files.c')
-rw-r--r-- | libcpp/files.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpp/files.c b/libcpp/files.c index 5b3a37b0279..6fc24e2af44 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -671,6 +671,7 @@ read_file_guts (cpp_reader *pfile, _cpp_file *file) if (count < 0) { cpp_errno (pfile, CPP_DL_ERROR, file->path); + free (buf); return false; } @@ -1759,6 +1760,7 @@ _cpp_save_file_entries (cpp_reader *pfile, FILE *fp) if (!open_file (f)) { open_file_failed (pfile, f, 0); + free (result); return false; } ff = fdopen (f->fd, "rb"); |