cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

fixes potential memory leaks in file ccn-lite-rpc.c #340

Closed mfrey closed 5 years ago

mfrey commented 5 years ago

Contribution description

This PR addresses three potential memory leaks identified by the scan-build.sh script (which uses clang static analyzer). In order to avoid leaking memory a check is performed if memory has been previously allocated and if true it is freed accordingly.

Issues/PRs references

Fixes #339