REVIEW: Memory Leak - naTempSave()

1,024 bytes in 1 blocks are still reachable
This commit is contained in:
Scott Giese 2020-08-23 01:02:27 -05:00
parent fc1178fb39
commit 720a1fe7d2

View File

@ -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];