diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-25 11:16:29 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-25 11:16:29 +0000 |
commit | 6cd16e1b2c8b7d78e11186edfbca1a5ede317f23 (patch) | |
tree | a9f2bb50c94f93914222bda440b38cb8b28c497f /src/transport/test_transport_api_disconnect.c | |
parent | 425cb0d11a124bd9e027bfe2a76f63e9a72f40ce (diff) | |
download | gnunet-6cd16e1b2c8b7d78e11186edfbca1a5ede317f23.tar.gz gnunet-6cd16e1b2c8b7d78e11186edfbca1a5ede317f23.zip |
fixing coverity 10466: Resource leak
Diffstat (limited to 'src/transport/test_transport_api_disconnect.c')
-rw-r--r-- | src/transport/test_transport_api_disconnect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/transport/test_transport_api_disconnect.c b/src/transport/test_transport_api_disconnect.c index 9fc317ac7..78253d9c5 100644 --- a/src/transport/test_transport_api_disconnect.c +++ b/src/transport/test_transport_api_disconnect.c | |||
@@ -196,6 +196,7 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
196 | "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", | 196 | "Peer %u (`%4s') received message of type %d and size %u size from peer %u (`%4s')!\n", |
197 | p->no, ps, ntohs (message->type), ntohs (message->size), t->no, | 197 | p->no, ps, ntohs (message->type), ntohs (message->size), t->no, |
198 | GNUNET_i2s (&t->id)); | 198 | GNUNET_i2s (&t->id)); |
199 | GNUNET_free (ps); | ||
199 | 200 | ||
200 | if ((MTYPE == ntohs (message->type)) && | 201 | if ((MTYPE == ntohs (message->type)) && |
201 | (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size))) | 202 | (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size))) |