Bug 384901: leak in jsfile.c, patch by Robin Ehrlich, rehrlich@ubiqinc.com, r=mrbkap

This commit is contained in:
crowder@fiverocks.com 2007-06-18 14:40:30 -07:00
parent 8b94eb77fd
commit 5eb2ffa8b3

View File

@ -470,6 +470,7 @@ js_canonicalPath(JSContext *cx, char *oldpath)
tmp = js_absolutePath(cx, path);
if (!tmp)
return NULL;
JS_free(cx, path);
path = tmp;
}