Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[posix] Addressing coverity warning: Resource leak
The "assert" and "VerifyOrDie" were checking same condition, so the second validation was never executed if (rval != sizeof(key)). Additionally,"aSwapFd" was not freed on assertion. With this commit, addressed the memory leak to system resources.
- Loading branch information