klocwork id 751: fixed memory leak
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 21 Dec 2010 14:31:25 +0000 (14:31 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 21 Dec 2010 14:31:25 +0000 (14:31 +0000)
src/core/core_api.c

index c727abc72fb11b5605dabb6a73471a10fbfb78e2..bff711d02fbb84e3c5c4cce65cf09c42be8781c0 100644 (file)
@@ -1555,6 +1555,7 @@ GNUNET_CORE_notify_transmit_ready (struct GNUNET_CORE_Handle *handle,
        {
          GNUNET_break (handle->queue_size != 0);
          GNUNET_break (pr->queue_size == 0);
+         GNUNET_free(th);
          return NULL;
        }
       if (priority <= minp->priority)