[ros-diffs] [fireball] 29456: - Don't try to free a pointer if it was not allocated.

fireball at svn.reactos.org fireball at svn.reactos.org
Mon Oct 8 14:37:45 CEST 2007


Author: fireball
Date: Mon Oct  8 16:37:44 2007
New Revision: 29456

URL: http://svn.reactos.org/svn/reactos?rev=29456&view=rev
Log:
- Don't try to free a pointer if it was not allocated.

Modified:
    trunk/reactos/drivers/network/afd/afd/main.c

Modified: trunk/reactos/drivers/network/afd/afd/main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/main.c?rev=29456&r1=29455&r2=29456&view=diff
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/main.c (original)
+++ trunk/reactos/drivers/network/afd/afd/main.c Mon Oct  8 16:37:44 2007
@@ -290,7 +290,7 @@
 			    FCB->AddressFrom,
 			    ConnInfo);
 
-    ExFreePool( ConnInfo );
+    if (ConnInfo) ExFreePool( ConnInfo );
 
     return UnlockAndMaybeComplete( FCB, Status, Irp, 0, NULL, TRUE );
 }




More information about the Ros-diffs mailing list