Blame SOURCES/libtirpc-0.2.4-svc_vc_create-memleak.patch
|
|
b39f54 |
diff -up libtirpc-0.2.4/src/svc_vc.c.orig libtirpc-0.2.4/src/svc_vc.c
|
|
|
b39f54 |
--- libtirpc-0.2.4/src/svc_vc.c.orig 2016-04-08 10:52:23.254767196 -0400
|
|
|
b39f54 |
+++ libtirpc-0.2.4/src/svc_vc.c 2016-04-08 10:57:44.461237876 -0400
|
|
|
b39f54 |
@@ -158,8 +158,10 @@ svc_vc_create(fd, sendsize, recvsize)
|
|
|
b39f54 |
warnx("svc_vc_create: out of memory");
|
|
|
b39f54 |
goto cleanup_svc_vc_create;
|
|
|
b39f54 |
}
|
|
|
b39f54 |
- if (!__rpc_fd2sockinfo(fd, &si))
|
|
|
b39f54 |
- return NULL;
|
|
|
b39f54 |
+ if (!__rpc_fd2sockinfo(fd, &si)) {
|
|
|
b39f54 |
+ warnx("svc_vc_create: __rpc_fd2sockinfo failed");
|
|
|
b39f54 |
+ goto cleanup_svc_vc_create;
|
|
|
b39f54 |
+ }
|
|
|
b39f54 |
r->sendsize = __rpc_get_t_size(si.si_af, si.si_proto, (int)sendsize);
|
|
|
b39f54 |
r->recvsize = __rpc_get_t_size(si.si_af, si.si_proto, (int)recvsize);
|
|
|
b39f54 |
r->maxrec = __svc_maxrec;
|