Skip to content

Commit

Permalink
use xmalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Sep 29, 2024
1 parent eb33200 commit 30343ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ static bool stream_receive_idx_locked(stream_t s)
if (msg.data.extsize == 0)
break;

void* mem = malloc((size_t)msg.data.extsize);
void* mem = xmalloc((size_t)msg.data.extsize);

xread(s->pipefd, msg.data.extsize, mem);

Expand Down

0 comments on commit 30343ea

Please sign in to comment.