shithub: git9

Download patch

ref: e84f3bcce42660a4a188c1236cc7da5347663c52
parent: 7a65cd2f21ff66991590ac269e4003126219c401
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 14 14:36:16 EST 2020

packs: fix memory leak

we were slurping the dir but not freeing it when
refreshing the list of pack files.

--- a/pack.c
+++ b/pack.c
@@ -225,6 +225,7 @@
 		if(openpack(&packf[npackf], d[i].name) != -1)
 			npackf++;
 	}
+	free(d);
 }
 
 static u32int