diff options
Diffstat (limited to 'src/peerinfo.c')
-rw-r--r-- | src/peerinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/peerinfo.c b/src/peerinfo.c index 8892b018..80595818 100644 --- a/src/peerinfo.c +++ b/src/peerinfo.c | |||
@@ -42,7 +42,7 @@ GNUNET_GTK_peerinfo_processor (void *cls, | |||
42 | GtkTreeModel *tm; | 42 | GtkTreeModel *tm; |
43 | GtkTreeIter iter; | 43 | GtkTreeIter iter; |
44 | int found; | 44 | int found; |
45 | char *pid; | 45 | gchar *pid; |
46 | const char *npid; | 46 | const char *npid; |
47 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; | 47 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; |
48 | 48 | ||
@@ -65,9 +65,11 @@ GNUNET_GTK_peerinfo_processor (void *cls, | |||
65 | if (0 == strcmp (pid, npid)) | 65 | if (0 == strcmp (pid, npid)) |
66 | { | 66 | { |
67 | found = GNUNET_YES; | 67 | found = GNUNET_YES; |
68 | g_free (pid); | ||
68 | break; | 69 | break; |
69 | } | 70 | } |
70 | } | 71 | } |
72 | g_free (pid); | ||
71 | } | 73 | } |
72 | while ( (found == GNUNET_NO) && | 74 | while ( (found == GNUNET_NO) && |
73 | (TRUE == gtk_tree_model_iter_next (tm, | 75 | (TRUE == gtk_tree_model_iter_next (tm, |