Skip to content

Commit f510b0a

Browse files
haoxian2zibaiwan
authored andcommitted
Fixed coverity in acl_program.cpp: Dereference before null check (REVERSE_INULL)
1 parent 8758923 commit f510b0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/acl_program.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ CL_API_ENTRY cl_int CL_API_CALL clReleaseProgramIntelFPGA(cl_program program) {
142142
if (program->device[i]->last_bin != nullptr)
143143
program->device[i]->last_bin->unload_content();
144144
}
145-
if (program)
146-
l_free_program(program);
145+
l_free_program(program);
147146
}
148147
return CL_SUCCESS;
149148
}

0 commit comments

Comments
 (0)