summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2008-03-17 16:07:54 -0700
committerIan Romanick <[email protected]>2008-03-17 16:07:54 -0700
commit9f106a8683ec89b873f0237fbb6930a63b89dfa0 (patch)
tree65cf8d523a54e75cb8da99275b26aacba4193bc8 /src
parent1936e4bdfd776f78f9fe44f77ce66066fd166360 (diff)
cell: Don't free NULL code pointers
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
index 842d713f841..24be65bff9d 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c
@@ -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;
}