networkd: fix a couple of memory leaks
cryptsetup: minor typo fix