From 3d1f1ffd7fae714cebf837aa3b9457774d3dbc72 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 1 Dec 2014 19:27:09 -0800 Subject: Fix a potential leak when opening a data file on Windows --- Alc/helpers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Alc/helpers.c b/Alc/helpers.c index 78d359fe..0d074087 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -530,6 +530,8 @@ FILE *OpenDataFile(const char *fname, const char *subdir) if((f=_wfopen(buffer, L"rb")) != NULL) { TRACE("Opened %ls\n", buffer); + free(wname); + free(wsubdir); return f; } } -- cgit v1.2.3