First free the memory for the structure char* variable
Code:if (stTempObj) { for (int i = 0; i < Count; i++) { if (stTempObj[i].list) { free (stTempObj[i].list); stTempObj[i].list = NULL; } // free the structure variable } free (stTempObj); stTempObj = NULL; }



LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks