pidgin/pidgin

Fix leak in `purple_markup_find_tag` on error
release-2.x.y
2021-09-15, Elliott Sales de Andrade
addb2327cde0
Fix leak in `purple_markup_find_tag` on error

The output is set to `NULL`, but the internal data list is not freed if it happened to get something put into it.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35816

Testing Done:
Ran `pidgin_utils_fuzzer` on the test case in the bug report.

Reviewed at https://reviews.imfreedom.org/r/924/
/** @page dbus-server-signals DBus Server Signals
@signals
@signal dbus-method-called
@signal dbus-introspect
@endsignals
@see dbus-server.h
<hr>
@signaldef dbus-method-called
@signalproto
gboolean (*dbus_method_called)(DBusConnection *connection,
DBusMessage *message);
@endsignalproto
@signaldesc
Emitted when a dbus method is going to be called.
@param connection The DBus connection.
@param message The DBus message.
@return TRUE if signal handler handled the method. ???
@endsignaldef
@signaldef dbus-introspect
@signalproto
void (*dbus_introspect)(GList **bidings_list);
@endsignalproto
@signaldesc
???
@param bindings_list ???
@endsignaldef
*/
// vim: syntax=c.doxygen tw=75 et