Remove unneeded check of free(NULL)

Passing NULL to free() is totally allowed
This commit is contained in:
Oleg Zabluda
2023-08-21 10:54:53 -07:00
committed by GitHub
parent ee95b1bf29
commit c2834c8a1f
+1 -1
View File
@@ -799,7 +799,7 @@ int main(int argc, char *argv[]) {
}
// memory and file handles cleanup
if (prompt_tokens != NULL) { free(prompt_tokens); }
free(prompt_tokens);
free_sampler(&sampler);
free_tokenizer(&tokenizer);
free_transformer(&transformer);