Revise myfree method

This commit is contained in:
Mr-Dave
2024-07-24 19:54:08 -06:00
parent 5b3bb97d0c
commit a9a866fecb
17 changed files with 87 additions and 97 deletions

View File

@@ -119,16 +119,6 @@ void myunquote(std::string &parm)
}
/* Free memory and set the pointer to NULL*/
void myfree(void *ptr_addr) {
void **ptr = (void **)ptr_addr;
if (*ptr != NULL) {
free(*ptr);
*ptr = NULL;
}
}
/** mymalloc */
void *mymalloc(size_t nbytes)
{