curl_dofree: allow free(NULL)
authorDaniel Stenberg <daniel@haxx.se>
Wed, 25 Dec 2013 22:30:25 +0000 (23:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 25 Dec 2013 22:30:25 +0000 (23:30 +0100)
commit7b057f53fd06ca9f53873992eed5b8c652be0df1
tree89e9f1e040f661872cca46a0fd0bd96708410be4
parent2dd9bfc5d9fc6aff2da789ee16f7d18089a141e2
curl_dofree: allow free(NULL)

Previously this memdebug free() replacement didn't properly work with a
NULL argument which has made us write code that avoids calling
free(NULL) - which causes some extra nuisance and unnecessary code.
Starting now, we should allow free(NULL) even when built with the
memdebug system enabled.

free(NULL) is permitted by POSIX
lib/memdebug.c