renderer: fix potential leak

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Marc-André Lureau 9 years ago committed by Dave Airlie
parent 8a3dcd4c7b
commit 2ee8859757
  1. 1
      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;
}

Loading…
Cancel
Save