]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/patch.c
fix a slight memory leak
[xonotic/netradiant.git] / tools / quake3 / q3map2 / patch.c
index 9cd707e224284fb3f2770bafb4e07e0847c77f07..b977dc7dc4bfab4c02436a503906408e8cff3a02 100644 (file)
@@ -266,8 +266,10 @@ void ParsePatch( qboolean onlyLights )
        GetToken(qtrue);
        if (g_bBrushPrimit!=BPRIMIT_OLDBRUSHES && strcmp(token,"}"))
        {
-               // NOTE: we leak that!
                ep = ParseEPair();
+               free(ep->key);
+               free(ep->value);
+               free(ep);
        }
        else
                UnGetToken();