diff options
author | Ian Romanick <idr@us.ibm.com> | 2008-03-17 16:07:54 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2008-03-17 16:07:54 -0700 |
commit | 9f106a8683ec89b873f0237fbb6930a63b89dfa0 (patch) | |
tree | 65cf8d523a54e75cb8da99275b26aacba4193bc8 /src/gallium/auxiliary/rtasm | |
parent | 1936e4bdfd776f78f9fe44f77ce66066fd166360 (diff) |
cell: Don't free NULL code pointers
Diffstat (limited to 'src/gallium/auxiliary/rtasm')
-rw-r--r-- | src/gallium/auxiliary/rtasm/rtasm_ppc_spe.c | 4 |
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 842d713f84..24be65bff9 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; } |