The request is cancelled, unix.Malloc already handles both cases (usage after free and leak if realloc fails and reallocated memory is not freed. http://reviews.llvm.org/D9040 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/