aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-12-01 19:27:09 -0800
committerChris Robinson <[email protected]>2014-12-01 19:27:09 -0800
commit3d1f1ffd7fae714cebf837aa3b9457774d3dbc72 (patch)
tree8620cc3aebc9357b6f857e8c8ca835cf1142be93 /Alc/helpers.c
parent0c74a14543a100430517838e147696f1de0de738 (diff)
Fix a potential leak when opening a data file on Windows
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}