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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user