[sound] Don't free realname in the vorbis loader

Luckily, it was almost never hit (error condition), but the code doesn't
own the pointer.
This commit is contained in:
Bill Currie 2022-05-12 19:37:35 +09:00
parent 826d66efaf
commit a1d8319b48

View file

@ -293,7 +293,6 @@ SND_LoadOgg (QFile *file, sfx_t *sfx, char *realname)
if (ov_open_callbacks (file, &vf, 0, 0, callbacks) < 0) {
Sys_Printf ("Input does not appear to be an Ogg bitstream.\n");
free (realname);
return -1;
}
info = vorbis_get_info (&vf);