Title: Memory leak fix#44
Conversation
Reason for change : The order of unreferencing was wrong, leading to leak redirectURL struct member as the parent reference is freed first and then tried to free the child of freed parent pointer. This commit fixes the same Signed-off-by: Mohamed Shaikh <mohamed.shaikh@t-systems.com>
adjusted indentation
|
This looks a good fix to upstream as well. Squash both into one and send a PR to https://github.com/ASPLes/nopoll |
Hi @kraj , this fix cannot be upstreamed to https://github.com/ASPLes/nopoll as the source is different there and the pointer RedirectURL is missing in ASPLes master branch. |
thanks. |
Reason for change : The order of unreferencing was wrong, leading to leak redirectURL struct member as the parent reference is freed first and then tried to free the child of freed parent pointer. This commit fixes the same