[ros-diffs] [cgutman] 38541: - Set ConnectionCallInfo and ConnectionReturnInfo to NULL after we free them so they don't get freed again

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Jan 4 05:10:54 CET 2009


Author: cgutman
Date: Sat Jan  3 22:10:54 2009
New Revision: 38541

URL: http://svn.reactos.org/svn/reactos?rev=38541&view=rev
Log:
 - Set ConnectionCallInfo and ConnectionReturnInfo to NULL after we free them so they don't get freed again

Modified:
    branches/aicom-network-fixes/drivers/network/afd/afd/listen.c

Modified: branches/aicom-network-fixes/drivers/network/afd/afd/listen.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/afd/afd/listen.c?rev=38541&r1=38540&r2=38541&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/listen.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/listen.c [iso-8859-1] Sat Jan  3 22:10:54 2009
@@ -159,8 +159,16 @@
 				 ListEntry ) );
     }
 
-    if( FCB->ListenIrp.ConnectionCallInfo ) ExFreePool( FCB->ListenIrp.ConnectionCallInfo );
-    if( FCB->ListenIrp.ConnectionReturnInfo ) ExFreePool( FCB->ListenIrp.ConnectionReturnInfo );
+    if( FCB->ListenIrp.ConnectionCallInfo ) {
+        ExFreePool( FCB->ListenIrp.ConnectionCallInfo );
+        FCB->ListenIrp.ConnectionCallInfo = NULL;
+    }
+
+    if( FCB->ListenIrp.ConnectionReturnInfo ) {
+        ExFreePool( FCB->ListenIrp.ConnectionReturnInfo );
+        FCB->ListenIrp.ConnectionReturnInfo = NULL;
+    }
+
     FCB->NeedsNewListen = TRUE;
 
     /* Trigger a select return if appropriate */



More information about the Ros-diffs mailing list