blob: clear buf->head when freeing a buffer
authorFelix Fietkau <nbd@nbd.name>
Thu, 10 Feb 2022 20:02:16 +0000 (21:02 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 10 Feb 2022 20:02:20 +0000 (21:02 +0100)
commitf2d6752901f2f2d8612fb43e10061570c9198af1
tree1087eaf77ae2f5e25d58b4550608f6c65de7d15d
parentcce5e351278b307af7f69931971e3d4e060117d7
blob: clear buf->head when freeing a buffer

Prevents accidental silent use-after-free bugs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
blob.c