Destructor functions in C clean up the objects. Description, syntax and usage of destructors is explained in this post
Read this post on cwithlinux.blogspot.com