diff --git a/include/cz/format.hpp b/include/cz/format.hpp index aa3d69d..bbea547 100644 --- a/include/cz/format.hpp +++ b/include/cz/format.hpp @@ -11,9 +11,9 @@ namespace cz { template void print(FILE* file, Allocator allocator, Ts... ts) { String string = {}; - CZ_DEFER(string.drop(allocator)); append(allocator, &string, ts...); fwrite(string.buffer, 1, string.len, file); + string.drop(allocator); } template