This was originally reported against Firefox, original bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=1066453
ca_sound_file_open calls fopen() on the supplied path, then hands ownership of the FILE* to the wav or vorbis file reader. ca_wav_close and ca_vorbis_close (via ov_clear) correctly fclose() the FILE*.
On error, e.g. when attempting to play an unsupported file format, ca_sound_file_open forgets to fclose() the FILE*.
Created attachment 106401 [details] [review]