]> git.ipfire.org Git - thirdparty/systemd.git/commit
alloc-util: make mfree() typesafe
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Aug 2021 12:36:00 +0000 (14:36 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 10 Aug 2021 19:47:10 +0000 (04:47 +0900)
commit5afcf89ca29b518eb2fa244b015afc2708f77e1d
tree9eab9ddad63b6d7aa0592d3f43e12dbae70b08cb
parent76f226d71b9d8d36eb4e61285e80527637299fac
alloc-util: make mfree() typesafe

Make sure we return the same type as we accept.

One incorrect use of mfree() is discovered and fixed this way.
src/basic/alloc-util.h
src/resolve/resolved-dns-rr.c