From 14c56772fde20f36830242041d3e4fa1b13816de Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 29 May 2016 02:59:29 -0400 Subject: [PATCH] Don't free ctx->mainfn if context build fails; it wasn't ever set. --- mojoshader.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mojoshader.c b/mojoshader.c index ea87511b..8498d601 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -11158,7 +11158,6 @@ static Context *build_context(const char *profile, ctx->errors = errorlist_create(MallocBridge, FreeBridge, ctx); if (ctx->errors == NULL) { - f((void *) ctx->mainfn, d); f(ctx, d); return NULL; } // if @@ -11166,7 +11165,6 @@ static Context *build_context(const char *profile, if (!set_output(ctx, &ctx->mainline)) { errorlist_destroy(ctx->errors); - f((void *) ctx->mainfn, d); f(ctx, d); return NULL; } // if