Actions
Bug #1562
closedIn SecTpmOsx, call CFRelease to free memory
Start date:
04/30/2014
Due date:
% Done:
100%
Estimated time:
Description
In sec-tpm-osx.cpp, there are several calls to create memory, for example:
CFStringRef keyLabel = CFStringCreateWithCString(NULL, keyNameUri.c_str(), kCFStringEncodingUTF8);
In cases like this, the code should also call CFRelease(keyLabel) to release the memory. There could be a memory leak without it. Functions also need to free the allocated memory returned by SecTpmOsx::Impl::getKey.
Actions