nv50: fix memory leak on nv50_pc free
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 12 Jan 2010 16:38:52 +0000 (17:38 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 12 Jan 2010 16:38:52 +0000 (17:38 +0100)
src/gallium/drivers/nv50/nv50_program.c

index e16fa479e5f1533b13dfbb1244cb0ecabce67c1d..069f8159381f7a9c4ca47c4a207d0b6135fc30d3 100644 (file)
@@ -3622,6 +3622,8 @@ free_nv50_pc(struct nv50_pc *pc)
                FREE(pc->attr);
        if (pc->temp)
                FREE(pc->temp);
+       if (pc->insn_pos)
+               FREE(pc->insn_pos);
 
        FREE(pc);
 }