From 298321a2e9ad56d9643708dac5a0e8df5a774493 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 28 Dec 2017 12:59:48 +0000 Subject: [PATCH] Complete r327264 by fixing yet another return without cleanup. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- usr.sbin/cpucontrol/intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/cpucontrol/intel.c b/usr.sbin/cpucontrol/intel.c index 362dbafcf7b4..d0ecaaca647f 100644 --- a/usr.sbin/cpucontrol/intel.c +++ b/usr.sbin/cpucontrol/intel.c @@ -147,7 +147,7 @@ intel_update(const char *dev, const char *path) fd = open(path, O_RDONLY, 0); if (fd < 0) { WARN(0, "open(%s)", path); - return; + goto fail; } error = fstat(fd, &st); if (error != 0) {