LRN: Fix slist misuse in network.c
authorChristian Grothoff <christian@grothoff.org>
Wed, 12 Oct 2011 08:32:11 +0000 (08:32 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 12 Oct 2011 08:32:11 +0000 (08:32 +0000)
src/util/network.c

index a62a57758511da5632b725d28421134473e37edc..fa097dff4f352ceab49958b1405d6cf058a4ce39 100644 (file)
@@ -1175,6 +1175,7 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds,
            LOG (GNUNET_ERROR_TYPE_DEBUG, "FD 0x%x (0x%x) is SET in rfds\n",
                 fh->h, fh);
          }
+       GNUNET_CONTAINER_slist_iter_destroy (t);
       }
 #endif
 #endif
@@ -1696,6 +1697,7 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds,
                                                                          NULL);
          LOG (GNUNET_ERROR_TYPE_DEBUG, "FD 0x%x is SET in rfds\n", fh->h);
        }
+      GNUNET_CONTAINER_slist_iter_destroy (t);
     }
   if (wfds)
     {