diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2015-11-30 16:34:35 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-12-02 10:27:42 +1000 |
commit | 2ee8859757bb8d1f86c9928e52f6dc8220fadf38 (patch) | |
tree | e0ae9c61b99ba1ddfc996ba227385b4d8d67960f | |
parent | 8a3dcd4c7b23ee24cecf0dab2b5b18b0864d256f (diff) |
renderer: fix potential leak
Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/vrend_renderer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 5e03433..0525acd 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -3830,6 +3830,7 @@ int vrend_renderer_resource_create(struct vrend_renderer_resource_create_args *a gltype = tex_conv_table[args->format].gltype; if (internalformat == 0) { fprintf(stderr,"unknown format is %d\n", args->format); + FREE(gr); return EINVAL; } |