]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix some resource leaks.
authorimp <imp@FreeBSD.org>
Tue, 23 Jan 2018 18:01:17 +0000 (18:01 +0000)
committerimp <imp@FreeBSD.org>
Tue, 23 Jan 2018 18:01:17 +0000 (18:01 +0000)
commit1e04a3583fb5891a0b4e4abb7afd3b58773cc37a
tree9f87b20b4d741357925107988c2dc32239fa090c
parentd12b8c7b4a32ebdb70721c977cc707a398c8b871
Fix some resource leaks.

Always free dev and fstyp before strduping new values to assign to
them. Free them at the end of the loop. This keeps them from leaking
for mal-formed /etc/fstab lines.

CID: 100777710077781007779
Sponsored by: Netflix
stand/common/boot.c