Skip to content

Commit e0e1bdc

Browse files
rtokarevbigbes
authored andcommitted
Fix allocation in tnt_buf_resize
1 parent 213ed9f commit e0e1bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tnt/tnt_buf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static char* tnt_buf_resize(struct tnt_stream *s, size_t size) {
6767
struct tnt_stream_buf *sb = TNT_SBUF_CAST(s);
6868
size_t off = sb->size;
6969
size_t nsize = off + size;
70-
char *nd = realloc(sb->data, nsize);
70+
char *nd = tnt_mem_realloc(sb->data, nsize);
7171
if (nd == NULL) {
7272
tnt_mem_free(sb->data);
7373
return NULL;

0 commit comments

Comments
 (0)