svn commit: r292272 - head/usr.sbin/ypldap

Marcelo Araujo araujo at FreeBSD.org
Tue Dec 15 15:42:43 UTC 2015


Author: araujo
Date: Tue Dec 15 15:42:42 2015
New Revision: 292272
URL: https://svnweb.freebsd.org/changeset/base/292272

Log:
  Remove the null checker before free.
  
  Approved by:	bapt (mentor)
  Obtained from:	OpenBSD
  Differential Revision:	https://reviews.freebsd.org/D4549

Modified:
  head/usr.sbin/ypldap/aldap.c

Modified: head/usr.sbin/ypldap/aldap.c
==============================================================================
--- head/usr.sbin/ypldap/aldap.c	Tue Dec 15 15:41:09 2015	(r292271)
+++ head/usr.sbin/ypldap/aldap.c	Tue Dec 15 15:42:42 2015	(r292272)
@@ -353,8 +353,7 @@ aldap_parse_page_control(struct ber_elem
 void
 aldap_freepage(struct aldap_page_control *page)
 {
-	if (page->cookie)
-		free(page->cookie);
+	free(page->cookie);
 	free(page);
 }
 


More information about the svn-src-head mailing list