summaryrefslogtreecommitdiffstats
path: root/drm/common/ReadWriteUtils.cpp
diff options
context:
space:
mode:
authorHung Nguyen <hung.nguyen@sonymobile.com>2012-06-05 13:19:53 +0200
committerJames Dong <jdong@google.com>2013-01-24 15:42:42 -0800
commit0bf43848adb00922122b0a0eed2fa0318bde8317 (patch)
treeb8b0ca3491d76059f03e97f695949876b6e153bc /drm/common/ReadWriteUtils.cpp
parent13f7fe763b9ad52fc27f21ed923c46b9555a321f (diff)
downloadframeworks_av-0bf43848adb00922122b0a0eed2fa0318bde8317.zip
frameworks_av-0bf43848adb00922122b0a0eed2fa0318bde8317.tar.gz
frameworks_av-0bf43848adb00922122b0a0eed2fa0318bde8317.tar.bz2
Fixed memory leakage in the DRM framework
Change-Id: Ib1276bec6cafb4e94f8f13b52e50e4987765eec4
Diffstat (limited to 'drm/common/ReadWriteUtils.cpp')
-rw-r--r--drm/common/ReadWriteUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/common/ReadWriteUtils.cpp b/drm/common/ReadWriteUtils.cpp
index fd17e98..d696f16 100644
--- a/drm/common/ReadWriteUtils.cpp
+++ b/drm/common/ReadWriteUtils.cpp
@@ -47,7 +47,7 @@ String8 ReadWriteUtils::readBytes(const String8& filePath) {
if (length == read(fd, (void*) bytes, length)) {
string.append(bytes, length);
}
- delete bytes;
+ delete[] bytes;
}
fclose(file);
}