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
commitbb9c2e1155d0a844f04aec981b44a9e562522fde (patch)
tree22e045c6e7c3b48a6e75c6c5776833f626b20107 /drm/common/ReadWriteUtils.cpp
parentb7a56193d5723cfb9984ae3a4feecb2212690a65 (diff)
downloadframeworks_av-bb9c2e1155d0a844f04aec981b44a9e562522fde.zip
frameworks_av-bb9c2e1155d0a844f04aec981b44a9e562522fde.tar.gz
frameworks_av-bb9c2e1155d0a844f04aec981b44a9e562522fde.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);
}