]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: add missing _cleanup_ in prefix_new
authorFilipe Brandenburger <filbranden@google.com>
Thu, 7 Jun 2018 21:37:30 +0000 (14:37 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Jun 2018 22:48:41 +0000 (00:48 +0200)
commit15b8332e7cc09b1ae2ef71265cd63bfbc8075eec
tree1916371b8b025048a3acc5d2be459430a10f936f
parent9d635f50b8873ee62000b22af3763cb1ee89ae19
networkd: add missing _cleanup_ in prefix_new

This should fix a leak of the allocated Prefix if sd_radv_prefix_new
fails for some reason.

The code was already initializing prefix to NULL and using TAKE_PTR to
return it, so only the _cleanup_ was missing.

Fixes Coverity finding CID 1382976.
src/network/networkd-radv.c