Skip to contentSkip to conversation

nv50: fix nv50_program->immd memory leak

PATCH In review Marcin Slusarz 2 participants 2 messages Jan 17, 2010 – Jan 18, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nv50: fix nv50_program->immd memory leak

---
 src/gallium/drivers/nv50/nv50_program.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
src/gallium/drivers/nv50/nv50_program.c +1 -0
index 4111d21..cfe8b48 100644
@@ -4656,6 +4656,7 @@ nv50_program_destroy(struct nv50_context *nv50, struct nv50_program *p)
 	}
 	p->exec_tail = NULL;
 	p->exec_size = 0;
+	FREE(p->immd);
 
 	nouveau_bo_ref(NULL, &p->bo);
 
Signature · 1 line
1.6.6

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 10 lines · Marcin Slusarz
---
 src/gallium/drivers/nv50/nv50_program.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
src/gallium/drivers/nv50/nv50_program.c +0 -0
index 4111d21..cfe8b48 100644

src/gallium/drivers/nv50/nv50_program.c nv50_program_destroy(struct nv50_context *nv50, struct nv50_program *p) · line 4662

Quoted 7 lines
src/gallium/drivers/nv50/nv50_program.c +1 -0
@@ -4656,6 +4656,7 @@ nv50_program_destroy(struct nv50_context *nv50, struct nv50_program *p)
 	}
 	p->exec_tail = NULL;
 	p->exec_size = 0;
+	FREE(p->immd);
 
 	nouveau_bo_ref(NULL, &p->bo);
 

Pushed.