- We don't need to test for NULL before free()

This commit is contained in:
Matt Johnston
2011-12-04 05:23:43 +08:00
parent bcf3a3ab93
commit 2e0145fb95
2 changed files with 1 additions and 8 deletions

View File

@@ -800,12 +800,6 @@ void * m_strdup(const char * str) {
return ret;
}
void __m_free(void* ptr) {
if (ptr != NULL) {
free(ptr);
}
}
void * m_realloc(void* ptr, size_t size) {
void *ret;