Fix leak when realloc fails
Fix leak when realloc fails

ShiftMediaProject/libbdplus,vlc-mirror/libbdplus,ShiftMediaProject/libbdplus,vlc-mirror/libbdplus,vlc-mirror/libbdplus,mwgoldsmith/bdplus,mwgoldsmith/bdplus,ShiftMediaProject/libbdplus,mwgoldsmith/bdplus