Improved Memory Management Proper Resource Cleanup and Freeing Allocated Memory
This PR improves memory management by ensuring all dynamically allocated resources are properly freed. It adds early exits with cleanup for invalid parsing and URL checks, ensures out and out_get_origin are freed in all exit paths, and prevents memory leaks, enhancing the robustness and efficiency of the fuzzer code.
Hii @anonrig Could you please Review This PR whenever you are free :) Thanks
Hii @anonrig
I had done some changes above that the fuzzer continues even if ada_parse fails or the URL is invalid, improving test coverage. Instead of returning immediately, memory is properly managed by freeing allocated resources, but the fuzzer still proceeds to test ada_can_parse and other functions.
This avoids prematurely ending tests while ensuring correct memory cleanup for invalid inputs.