1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

Garbage collect the unused imsg_hdr in imsg_close()

ok claudio
This commit is contained in:
tb 2024-11-29 04:35:13 +00:00
parent f651b06a4c
commit a4ff2ce640

View File

@ -1,4 +1,4 @@
/* $OpenBSD: imsg.c,v 1.37 2024/11/26 13:57:31 claudio Exp $ */
/* $OpenBSD: imsg.c,v 1.38 2024/11/29 04:35:13 tb Exp $ */
/*
* Copyright (c) 2023 Claudio Jeker <claudio@openbsd.org>
@ -334,7 +334,6 @@ imsg_add(struct ibuf *msg, const void *data, size_t datalen)
void
imsg_close(struct imsgbuf *imsgbuf, struct ibuf *msg)
{
struct imsg_hdr *hdr;
uint32_t len;
len = ibuf_size(msg);