cell: Don't free NULL code pointers

This commit is contained in:
Ian Romanick
2008-03-17 16:07:54 -07:00
parent 1936e4bdfd
commit 9f106a8683
+3 -1
View File
@@ -316,7 +316,9 @@ void spe_init_func(struct spe_function *p, unsigned code_size)
void spe_release_func(struct spe_function *p)
{
align_free(p->store);
if (p->store != NULL) {
align_free(p->store);
}
p->store = NULL;
p->csr = NULL;
}