From: Ian Romanick Date: Mon, 17 Mar 2008 23:07:54 +0000 (-0700) Subject: cell: Don't free NULL code pointers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f106a8683ec89b873f0237fbb6930a63b89dfa0;p=mesa.git cell: Don't free NULL code pointers --- 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; }