fix: sonarcloud code smells (#2486)

This commit is contained in:
Charles Kerr
2022-01-23 18:53:35 -06:00
committed by GitHub
parent a2e30235c4
commit 26bb9f3440
17 changed files with 74 additions and 87 deletions

View File

@@ -298,7 +298,7 @@ uint8_t* tr_loadFile(char const* path, size_t* size, tr_error** error)
{
tr_logAddError(err_fmt, path, my_error->message);
tr_sys_file_close(fd, nullptr);
free(buf);
tr_free(buf);
tr_error_propagate(error, &my_error);
return nullptr;
}