Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81968842
D7413.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
862 B
Referenced Files
None
Subscribers
None
D7413.diff
View Options
Index: sys/nfs/krpc_subr.c
===================================================================
--- sys/nfs/krpc_subr.c
+++ sys/nfs/krpc_subr.c
@@ -209,8 +209,10 @@
* Validate address family.
* Sorry, this is INET specific...
*/
- if (sa->sin_family != AF_INET)
+ if (sa->sin_family != AF_INET) {
+ m_freem(mhead);
return (EAFNOSUPPORT);
+ }
/* Free at end if not null. */
nam = mhead = NULL;
@@ -219,8 +221,10 @@
/*
* Create socket and set its receive timeout.
*/
- if ((error = socreate(AF_INET, &so, SOCK_DGRAM, 0, td->td_ucred, td)))
+ if ((error = socreate(AF_INET, &so, SOCK_DGRAM, 0, td->td_ucred, td))) {
+ m_freem(mhead);
return error;
+ }
tv.tv_sec = 1;
tv.tv_usec = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 15, 12:33 AM (21 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091035
Default Alt Text
D7413.diff (862 B)
Attached To
Mode
D7413: Fix possible memory leak on error return in krpc_portmap
Attached
Detach File
Event Timeline
Log In to Comment