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:
0620164
)
-rps _peers: prevent leaking of storage
author
Julius Bünger
<buenger@mytum.de>
Wed, 14 Sep 2016 22:38:07 +0000
(22:38 +0000)
committer
Julius Bünger
<buenger@mytum.de>
Wed, 14 Sep 2016 22:38:07 +0000
(22:38 +0000)
src/rps/gnunet-service-rps_peers.c
patch
|
blob
|
history
diff --git
a/src/rps/gnunet-service-rps_peers.c
b/src/rps/gnunet-service-rps_peers.c
index 49b1545474e08168b4ab7bf353681813a07f3d4d..1a42a3accd6c1e3c6d7d3c6d35cd0b7b81c9c884 100644
(file)
--- a/
src/rps/gnunet-service-rps_peers.c
+++ b/
src/rps/gnunet-service-rps_peers.c
@@
-874,7
+874,7
@@
restore_valid_peers ()
char *buf;
ssize_t size_read;
char *iter_buf;
- c
onst c
har *str_repr;
+ char *str_repr;
const struct GNUNET_PeerIdentity *peer;
if (0 == strncmp ("DISABLE", filename_valid_peers, 7))
@@
-903,6
+903,7
@@
restore_valid_peers ()
{
str_repr = GNUNET_strndup (iter_buf, 53);
peer = s2i_full (str_repr);
+ GNUNET_free (str_repr);
add_valid_peer (peer);
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Restored valid peer %s from disk\n",