projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8e8871
)
udputils: don't free invalid memory
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 18 Jun 2009 09:54:22 +0000
(11:54 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 19 Jun 2009 14:00:51 +0000
(16:00 +0200)
As spotted by benjiG in IRC.
don't free invalid memory when getaddrinfo failed.
gst/udp/gstudpnetutils.c
patch
|
blob
|
history
diff --git
a/gst/udp/gstudpnetutils.c
b/gst/udp/gstudpnetutils.c
index
86c1f50
..
41cc2a1
100644
(file)
--- a/
gst/udp/gstudpnetutils.c
+++ b/
gst/udp/gstudpnetutils.c
@@
-107,8
+107,8
@@
gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr)
ret = EAI_ADDRFAMILY;
}
-beach:
freeaddrinfo (res);
+beach:
return ret;
}