Skip to content
  • Brian Paul's avatar
    svga: avoid freeing non-malloced memory · 96e08941
    Brian Paul authored
    
    
    svga_shader_expand() will fall back to using non-malloced memory for
    emit.buf if malloc fails. We should check if the memory is malloced
    before freeing it in the error path of svga_tgsi_vgpu9_translate.
    
    Original patch by Thomas Hindoe Paaboel Andersen <phomes@gmail.com>.
    Remove trivial svga_destroy_shader_emitter() function, by BrianP.
    
    Signed-off-by: default avatarBrian Paul <brianp@vmware.com>
    96e08941