C functions with an explicit close operation will leak memory IMO, otherwise they won't have this explicit function?