diff options
author | David Wagner <david.wagner@intel.com> | 2014-10-24 18:03:49 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-10-24 18:03:49 +0200 |
commit | 402ea05be2b44a4b858890fbe02abb9d073fff7b (patch) | |
tree | 12188bd3d58c8f3805de6879e2a8ad4b76f3b93e /parameter | |
parent | 9c51930a257e08a7171cf924ced36b0ab0dae208 (diff) | |
parent | ccb745447386f49e018fe39d1ec54a652eefa57f (diff) | |
download | external_parameter-framework-402ea05be2b44a4b858890fbe02abb9d073fff7b.zip external_parameter-framework-402ea05be2b44a4b858890fbe02abb9d073fff7b.tar.gz external_parameter-framework-402ea05be2b44a4b858890fbe02abb9d073fff7b.tar.bz2 |
Merge pull request #17 from Makohoek/static_analysis_fix
Fix a use-after-free issue
Diffstat (limited to 'parameter')
-rw-r--r-- | parameter/BinaryStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parameter/BinaryStream.cpp b/parameter/BinaryStream.cpp index 42b6185..701e9b8 100644 --- a/parameter/BinaryStream.cpp +++ b/parameter/BinaryStream.cpp @@ -46,12 +46,12 @@ CBinaryStream::CBinaryStream(const string& strFileName, bool bOut, uint32_t uiDa CBinaryStream::~CBinaryStream() { - delete [] _puiData; - if (_bOpen) { close(); } + + delete [] _puiData; } bool CBinaryStream::open(string& strError) |