From 455a4cbb2065566656be13b7a0f1319cc7dc0c6e Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Tue, 25 Mar 2014 15:42:03 +0100 Subject: [PATCH] popen.c:unregister_file(): memleak: free .realfile --- popen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/popen.c b/popen.c index 3d48f20a..f46e7ab7 100644 --- a/popen.c +++ b/popen.c @@ -248,6 +248,8 @@ unregister_file(FILE *fp) if ((p->compressed & FP_MASK) != FP_RAW) /* TODO ;} */ rv = _compress(p); *pp = p->link; + if (p->realfile != NULL) + free(p->realfile); free(p); goto jleave; } -- 2.11.4.GIT