projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3937c27
)
Fixed coverity #10249
author
Bart Polot
<bart@net.in.tum.de>
Fri, 4 Nov 2011 14:18:28 +0000
(14:18 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Fri, 4 Nov 2011 14:18:28 +0000
(14:18 +0000)
src/mesh/mesh_tunnel_tree.c
patch
|
blob
|
history
diff --git
a/src/mesh/mesh_tunnel_tree.c
b/src/mesh/mesh_tunnel_tree.c
index cfe6a46a80a222b31a601cfd93ec87b16ac8d48e..63f5aef588d8aef7bfad40b36bd431139ba6f72a 100644
(file)
--- a/
src/mesh/mesh_tunnel_tree.c
+++ b/
src/mesh/mesh_tunnel_tree.c
@@
-269,7
+269,7
@@
path_destroy (struct MeshPeerPath *p)
if (NULL == p)
return GNUNET_OK;
GNUNET_PEER_decrement_rcs (p->peers, p->length);
- GNUNET_free (p->peers);
+ GNUNET_free
_non_null
(p->peers);
GNUNET_free (p);
return GNUNET_OK;
}
@@
-760,7
+760,10
@@
tree_get_path_to_peer (struct MeshTunnelTree *t, GNUNET_PEER_Id peer)
GNUNET_PEER_change_rc (n->peer, 1);
n = n->parent;
if (NULL == n)
+ {
+ path_destroy (p);
return NULL;
+ }
}
GNUNET_array_append (p->peers, p->length, myid);
GNUNET_PEER_change_rc (myid, 1);