diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-11-10 21:12:07 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-11-10 21:12:07 +0000 |
commit | 8317226ff8ea7a95f228ed2b72c78c1aad2784b6 (patch) | |
tree | da56c3c1e63d1609fe3d3dfbd3f9aa1502fc7b9c | |
parent | a3cc428796ed838123b0cbca2cdb70573780ed93 (diff) | |
download | rockbox-8317226ff8ea7a95f228ed2b72c78c1aad2784b6.tar.gz rockbox-8317226ff8ea7a95f228ed2b72c78c1aad2784b6.zip |
Carbon TTS: Fix a memory leak on read error.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30961 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/base/ttscarbon.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/ttscarbon.cpp b/rbutil/rbutilqt/base/ttscarbon.cpp index 4df6d6368c..ff7709dc63 100644 --- a/rbutil/rbutilqt/base/ttscarbon.cpp +++ b/rbutil/rbutilqt/base/ttscarbon.cpp | |||
@@ -330,6 +330,7 @@ int TTSCarbon::convertAiffToWav(const char* aiff, const char* wav) | |||
330 | if(fread(buf, 1, filestat.st_size, in) < filestat.st_size) { | 330 | if(fread(buf, 1, filestat.st_size, in) < filestat.st_size) { |
331 | printf("could not read file: not enought bytes read\n"); | 331 | printf("could not read file: not enought bytes read\n"); |
332 | fclose(in); | 332 | fclose(in); |
333 | free(buf); | ||
333 | return -1; | 334 | return -1; |
334 | } | 335 | } |
335 | fclose(in); | 336 | fclose(in); |