summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-11-10 21:12:07 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-11-10 21:12:07 +0000
commit8317226ff8ea7a95f228ed2b72c78c1aad2784b6 (patch)
treeda56c3c1e63d1609fe3d3dfbd3f9aa1502fc7b9c /rbutil/rbutilqt
parenta3cc428796ed838123b0cbca2cdb70573780ed93 (diff)
Carbon TTS: Fix a memory leak on read error.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30961 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r--rbutil/rbutilqt/base/ttscarbon.cpp1
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)
if(fread(buf, 1, filestat.st_size, in) < filestat.st_size) {
printf("could not read file: not enought bytes read\n");
fclose(in);
+ free(buf);
return -1;
}
fclose(in);