Re: [PATCH] win32: plug memory leak on realloc() failure in syslog()

2017-08-14 Thread Johannes Schindelin
Hi René, On Thu, 10 Aug 2017, René Scharfe wrote: > If realloc() fails then the original buffer is still valid. Free it > before exiting the function. > > Signed-off-by: Rene Scharfe The subject had me worried for a second... The realloc() fails so rarely that I, for one, have

[PATCH] win32: plug memory leak on realloc() failure in syslog()

2017-08-10 Thread René Scharfe
If realloc() fails then the original buffer is still valid. Free it before exiting the function. Signed-off-by: Rene Scharfe --- compat/win32/syslog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/win32/syslog.c b/compat/win32/syslog.c index 6c7c9b6053..161978d720