Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
OS400: handle memory error in list conversion #3372
Fix by assigning to a temporary list pointer, which can be checked (which is the common pattern for slist appending), and free all the resources on allocation failure.
Disclaimer: I have not tested this since I have no access to an OS400 environment.