radeon: free indices caught with valgrind
authorDave Airlie <airlied@linux.ie>
Thu, 22 Jan 2009 11:29:22 +0000 (21:29 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 22 Jan 2009 11:29:22 +0000 (21:29 +1000)
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c

index 3a3a245d79812a78546438ac26df742e7ae93842..0d0ea3640286518f4906bb5721b573482a348e53 100644 (file)
@@ -337,6 +337,7 @@ static int cs_emit(struct radeon_cs *cs)
 
 static int cs_destroy(struct radeon_cs *cs)
 {
+    free(cs->relocs->indices);
     free(cs->relocs);
     free(cs->packets);
     free(cs);