Prefer tf_resize_vec many places over tf_realloc.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4805 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2024-01-27 21:29:06 +00:00
parent b9987580ee
commit dc655bb359
5 changed files with 9 additions and 9 deletions

View File

@ -57,7 +57,7 @@ void tf_serialize_store(tf_task_t* task, tf_taskstub_t* to, void** out_buffer, s
tf_trace_begin(trace, "tf_serialize_store");
buffer_t tmp = { 0 };
_serialize_store(task, to, &tmp, value);
tmp.data = tf_realloc(tmp.data, tmp.size);
tmp.data = tf_resize_vec(tmp.data, tmp.size);
*out_buffer = tmp.data;
*out_size = tmp.size;
tf_trace_end(trace);