  {
  	int fd;
  	char *p;
-@@ -340,12 +355,12 @@ static int dmi_load_file_variable_size(const char* filename, void *buf, size_t *
+@@ -342,12 +357,12 @@ static int dmi_load_file_variable_size(const char* filename, void *buf, size_t *
  	(void)close(fd);
  	*size = total;
  	return FWTS_OK;

 	void *table;
 	void *mem;
 	char anchor[8];
@@ -405,18 +426,23 @@ static void* dmi_table_smbios30(fwts_framework *fw, fwts_smbios30_entry *entry)
 		return NULL;
 	}
 

 	void *table;
 	void *mem;
 	char anchor[8];
@@ -359,18 +374,24 @@ static void* dmi_table_smbios(fwts_framework *fw, fwts_smbios_entry *entry)
 		return NULL;
 	}
 
