Skip to content

Commit

Permalink
Fixed coverity in acl_program.cpp: Dereference before null check (REV…
Browse files Browse the repository at this point in the history
…ERSE_INULL)
  • Loading branch information
haoxian2 committed Dec 9, 2022
1 parent 8d7d5df commit 55a4ac7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/acl_program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ CL_API_ENTRY cl_int CL_API_CALL clReleaseProgramIntelFPGA(cl_program program) {
if (program->device[i]->last_bin != nullptr)
program->device[i]->last_bin->unload_content();
}
if (program)
l_free_program(program);
l_free_program(program);
}
return CL_SUCCESS;
}
Expand Down

0 comments on commit 55a4ac7

Please # to comment.