Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140531630
D6495.id54425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
516 B
Referenced Files
None
Subscribers
None
D6495.id54425.diff
View Options
Index: lib/libc/rpc/clnt_bcast.c
===================================================================
--- lib/libc/rpc/clnt_bcast.c
+++ lib/libc/rpc/clnt_bcast.c
@@ -346,7 +346,9 @@
#ifdef PORTMAP
if (si.si_af == AF_INET && si.si_proto == IPPROTO_UDP) {
udpbufsz = fdlist[fdlistno].dsize;
- if ((outbuf_pmap = malloc(udpbufsz)) == NULL) {
+ if ((outbuf_pmap = reallocf(outbuf_pmap, udpbufsz))
+ == NULL) {
+ outbuf_pmap = NULL;
_close(fd);
stat = RPC_SYSTEMERROR;
goto done_broad;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 25, 11:19 PM (3 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27267221
Default Alt Text
D6495.id54425.diff (516 B)
Attached To
Mode
D6495: Use reallocf instead of malloc to fix leak with outbuf_pmap
Attached
Detach File
Event Timeline
Log In to Comment