]> git.vomp.tv Git - vompclient.git/commitdiff
Fix missing fclose in WOL code
authorChris Tallon <chris@vomp.tv>
Mon, 13 Apr 2015 15:14:02 +0000 (16:14 +0100)
committerChris Tallon <chris@vomp.tv>
Mon, 13 Apr 2015 15:14:02 +0000 (16:14 +0100)
wol.cc

diff --git a/wol.cc b/wol.cc
index 6b23680f1a01f9c320bbbbb171e1968538a6db3a..0772d00c97c9455b687f827ac74ce95eb831fd58 100644 (file)
--- a/wol.cc
+++ b/wol.cc
@@ -103,6 +103,7 @@ int Wol::find_ether(char *name)
       if (name[0] && !strcmp(ip, name))
       {
         logger->log("Wol", Log::NOTICE, "Found etheraddr %s", ether_addr);
+        fclose(fp);
         return 1;
       }
     }