Re: [systemd-devel] [PATCH 2/2] journald: fix fd leak in journal_file_empty

2013-09-06 Thread Harald Hoyer
On 09/04/2013 02:12 PM, George McCollister wrote: Before my previous patch, journal_file_empty wasn't be called with the correct filename. Now that it's being called with the correct filename it leaks file descriptors. This patch closes the file descriptors before returning. Signed-off-by:

[systemd-devel] [PATCH 2/2] journald: fix fd leak in journal_file_empty

2013-09-04 Thread George McCollister
Before my previous patch, journal_file_empty wasn't be called with the correct filename. Now that it's being called with the correct filename it leaks file descriptors. This patch closes the file descriptors before returning. Signed-off-by: George McCollister george.mccollis...@gmail.com ---