summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-11-07 15:51:31 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-07 15:51:31 +0000
commitbd79a9c9f39482b3a9560d03cb045ec4e3b87486 (patch)
tree90d3ebbe31b26daa57c670ab884bbadc46a6f062 /include
parent2abb2abea05fddd9ec2a1d6c831f1e62c37c7fa3 (diff)
parent88061d6b38cfb4bf374039846b753a3b21ac61e1 (diff)
downloadframeworks_base-bd79a9c9f39482b3a9560d03cb045ec4e3b87486.zip
frameworks_base-bd79a9c9f39482b3a9560d03cb045ec4e3b87486.tar.gz
frameworks_base-bd79a9c9f39482b3a9560d03cb045ec4e3b87486.tar.bz2
am 88061d6b: am 5462bc63: Fix a leak in Parcel::writeBlob.
* commit '88061d6b38cfb4bf374039846b753a3b21ac61e1': Fix a leak in Parcel::writeBlob.
Diffstat (limited to 'include')
-rw-r--r--include/binder/Parcel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h
index 3fa2acb..33b2f00 100644
--- a/include/binder/Parcel.h
+++ b/include/binder/Parcel.h
@@ -110,7 +110,8 @@ public:
// Place a file descriptor into the parcel. The given fd must remain
// valid for the lifetime of the parcel.
- status_t writeFileDescriptor(int fd);
+ // The Parcel does not take ownership of the given fd unless you ask it to.
+ status_t writeFileDescriptor(int fd, bool takeOwnership = false);
// Place a file descriptor into the parcel. A dup of the fd is made, which
// will be closed once the parcel is destroyed.