[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Memory leak in info man page fall back
From: |
Vitezslav Crhonek |
Subject: |
Memory leak in info man page fall back |
Date: |
Thu, 26 Jul 2018 14:24:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Hi,
This time a memory leak is within the 'get_initial_file' function
(info.c:175).
Storage is returned from allocation function 'get_manpage_node' into
'man_node' pointer variable (line 290). If man_node is not NULL,
'return' is called without freeing the memory (line 298).
Steps to reproduce:
1) run '$ valgrind --leak-check=full fetchmail'
(or any other argument, which doesn't have info page and fall
backs to man page)
2) quit info and see valgrind summary
Attached patch resolves the issue.
Best regards,
Vita
--
Vitezslav Crhonek
Software Engineer
Red Hat
manpage-fallback-memleak.patch
Description: Text Data
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Memory leak in info man page fall back,
Vitezslav Crhonek <=