>>16
なぜRustのスレに書いているのか不明だけど
当然NULLにならなかったよ

キャスト警告無視で
#include <stdlib.h>
main() {
 char *ptr = malloc(1024);
 printf("ptr(1): %x\n", ptr);
 free(ptr);
 printf("ptr(2): %x\n", ptr);
 free(ptr);
 printf("ptr(3): %x\n", ptr);
}

実行結果
ptr(1): ea8f72a0
ptr(2): ea8f72a0
free(): double free detected
core dump