1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-08 21:42:07 +03:00

malloc-fail: Fix memory leak in exsltFuncRegisterImportFunc

Found with libFuzzer, see #84.
This commit is contained in:
Nick Wellnhofer
2023-02-26 16:54:03 +01:00
parent 75074d0e8a
commit 282bb94471

View File

@@ -114,6 +114,7 @@ exsltFuncRegisterImportFunc (void *payload, void *vctxt,
xsltGenericError(xsltGenericErrorContext,
"Failed to register function {%s}%s\n",
URI, name);
xmlFree(func);
} else { /* Do the registration */
xsltGenericDebug(xsltGenericDebugContext,
"exsltFuncRegisterImportFunc: register {%s}%s\n",