OSSP CVS Repository

ossp - Check-in [819]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 819
Date: 2001-Sep-02 17:35:40 (local)
2001-Sep-02 15:35:40 (UTC)
User:ms
Branch:
Comment: When destroying a channel, erase its pointer to avoid a double-destruction mistake (possibly by both the channel and stream parent.)
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_channel.c      1.7 -> 1.8     1 inserted, 0 deleted

ossp-pkg/l2/l2_channel.c 1.7 -> 1.8

--- l2_channel.c 2001/09/02 14:37:58     1.7
+++ l2_channel.c 2001/09/02 15:35:40     1.8
@@ -166,6 +166,7 @@
     else
         rv = L2_OK;
     free(ch);
+    ch = NULL;
     return rv;
 }
 

CVSTrac 2.0.1