Fix CID 264288 Resource leak

opendir() needs closedir().

Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Change-Id: I316ee4f83a8b964cd9b0a6a5c3142ee080cab747
Reviewed-on: https://review.coreboot.org/c/em100/+/37422
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
diff --git a/em100.c b/em100.c
index 301d574..5fa95dd 100644
--- a/em100.c
+++ b/em100.c
@@ -733,6 +733,7 @@
 		return NULL;
 	}
 
+	closedir(dir);
 	return directory;
 }