@ -212,8 +212,10 @@ nvram_commit(void)
fp = fopen("/var/log/commit_ret", "w");
if ((ret = nvram_init(NULL)))
if ((ret = nvram_init(NULL))) {
fclose(fp);
return ret;
}
ret = ioctl(nvram_fd, NVRAM_MAGIC, NULL);