View Single Post
Old 27 February 2021, 11:02   #16
carls
Registered User
 
Join Date: Apr 2012
Location: Cyberspace
Posts: 57
Quote:
Originally Posted by bebbo View Post
a proper malloc/free implementation must free it's allocated memory on program exit.

I'm using Dice C to compile natively, which seems proper based on the results mentioned in my first post.



Quote:
All free() invocations which only occur at the end of the program can be omitted.

In that case I might as well test the above assumption a bit more extensively, because my program ends with freeing my readargs struct and the lists I've used. All intermittent mallocs are freed as I go, so to speak.
carls is offline  
 
Page generated in 0.07608 seconds with 11 queries