]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: Free Prefix in case allocation fails (#7480)
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 27 Nov 2017 12:07:22 +0000 (14:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 27 Nov 2017 12:07:22 +0000 (13:07 +0100)
commita86d329f225cbe093eefe1de37ac5cf2b53b8872
tree8579b86f754584c2f7b820980336375474dad1fe
parent401e33ed56f3cd3736bbab02ca6eb31aa592cf53
networkd: Free Prefix in case allocation fails (#7480)

Set the code to call _cleanup_prefix_free_ in case the next allocation
fails so that Prefix does not leak memory.

Reported by evverx.
src/network/networkd-address.c