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 cipher-signals Cipher Signals
@signals
@signal cipher-added
@signal cipher-removed
@endsignals
@see cipher.h
<hr>
@signaldef cipher-added
@signalproto
void (*cipher_added)(PurpleCipher *cipher);
@endsignalproto
@signaldesc
Emitted when a cipher is added.
@param cipher The cipher that was added.
@endsignaldef
@signaldef cipher-removed
@signalproto
void (*cipher_removed)(PurpleCipher *cipher);
@endsignalproto
@signaldesc
Emitted when a cipher is removed.
@param cipher The cipher that was removed.
@endsignaldef
*/
// vim: syntax=c.doxygen tw=75 et