REVIEW: Memory Leak - naTempSave()
1,024 bytes in 1 blocks are still reachable
This commit is contained in:
parent
fc1178fb39
commit
720a1fe7d2
@ -17,6 +17,7 @@ void naTempSave(naContext c, naRef r)
|
||||
if(c->ntemps >= c->tempsz) {
|
||||
struct naObj** newtemps;
|
||||
c->tempsz *= 2;
|
||||
// REVIEW: Memory Leak - 1,024 bytes in 1 blocks are still reachable
|
||||
newtemps = naAlloc(c->tempsz * sizeof(struct naObj*));
|
||||
for(i=0; i<c->ntemps; i++)
|
||||
newtemps[i] = c->temps[i];
|
||||
|
Loading…
Reference in New Issue
Block a user