[vlc-commits] sap: fix potential memory leak (cid #1048940)

Rémi Duraffort git at videolan.org
Mon Dec 2 08:43:32 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Dec  2 08:37:04 2013 +0100| [dbf26164e81fec33233353e99b89ded126f5c738] | committer: Rémi Duraffort

sap: fix potential memory leak (cid #1048940)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dbf26164e81fec33233353e99b89ded126f5c738
---

 modules/services_discovery/sap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 0700324..91dc88f 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -1251,7 +1251,7 @@ static sdp_t *ParseSDP (vlc_object_t *p_obj, const char *psz_sdp)
                 {
                     msg_Dbg (p_obj, "SDP origin not supported: %s", data);
                     /* Or maybe out-of-range, but this looks suspicious */
-                    return NULL;
+                    goto error;
                 }
                 EnsureUTF8 (p_sdp->orig_host);
                 break;



More information about the vlc-commits mailing list