diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-03-19 06:43:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-03-19 06:43:34 +0000 |
commit | 72e6cdfa2cd95240439c72705ab28a2eebb7d04e (patch) | |
tree | ae830b7817948dc795cc92ec98216c478dde57e3 /sunrpc/xdr_sizeof.c | |
parent | 354b75277bc86768eafbbf5f590deb27e0a71d89 (diff) | |
download | glibc-72e6cdfa2cd95240439c72705ab28a2eebb7d04e.zip glibc-72e6cdfa2cd95240439c72705ab28a2eebb7d04e.tar.gz glibc-72e6cdfa2cd95240439c72705ab28a2eebb7d04e.tar.bz2 |
Remove useless "if" before "free".
Diffstat (limited to 'sunrpc/xdr_sizeof.c')
-rw-r--r-- | sunrpc/xdr_sizeof.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sunrpc/xdr_sizeof.c b/sunrpc/xdr_sizeof.c index aaf25e9..dc3e19e 100644 --- a/sunrpc/xdr_sizeof.c +++ b/sunrpc/xdr_sizeof.c @@ -86,8 +86,7 @@ x_inline (XDR *xdrs, u_int len) else { /* Free the earlier space and allocate new area */ - if (xdrs->x_private) - free (xdrs->x_private); + free (xdrs->x_private); if ((xdrs->x_private = (caddr_t) malloc (len)) == NULL) { xdrs->x_base = 0; @@ -157,7 +156,6 @@ xdr_sizeof (xdrproc_t func, void *data) x.x_base = (caddr_t) 0; stat = func (&x, data); - if (x.x_private) - free (x.x_private); + free (x.x_private); return stat == TRUE ? x.x_handy : 0; } |