Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upnpsoap: Prevent memory leaks upon return.
When we return with a failure of malloc, we may need to free the memory that may have been allocated before or we will have a memory leak. We also initialize the pointers in question to NULL to avoid calling free with potential garbage.
- Loading branch information