bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] install-info: fix memory leak


From: Andreas Schwab
Subject: [PATCH] install-info: fix memory leak
Date: Sat, 05 Jan 2013 12:28:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.91 (gnu/linux)

2013-01-05  Andreas Schwab  <address@hidden>

        * install-info/install-info.c (open_possibly_compressed_file): Fix
        memory leak.
---
 install-info/install-info.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/install-info/install-info.c b/install-info/install-info.c
index 0a657da..28204a2 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -679,6 +679,7 @@ open_possibly_compressed_file (char *filename,
     }
   if (!f)
     {
+      free (*opened_filename);
       *opened_filename = concat (filename, ".xz", "");
       f = fopen (*opened_filename, FOPEN_RBIN);
     }
-- 
1.8.1

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]