[vlc-devel] [PATCH] relative_URI memory leak cleanup

Jean-Paul Saman jpsaman at videolan.org
Thu Dec 2 11:01:55 CET 2010

On Thu, Dec 2, 2010 at 12:04 AM,  <Brian.Kurle at arrisi.com> wrote:
> From: Brian Kurle <Brian.Kurle at arrisi.com>
> If the the link is relative, psz_uri is dynamically allocated a string of the
> absolute URI (which is also returned by the function).   However, if it isn't,
> NULL is returned and nothing is allocated.   segment_New performs a strdup, so
> the pointer is not saved.   Thus, check if the allocation occurred and clean up
> if needed.

Applied (commit-id: 392c7b8a555ed9994256757c0350ebc4a251ddee)

Kind regards,

Jean-Paul Saman

More information about the vlc-devel mailing list