aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-28 19:21:29 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-28 19:21:29 +0200
commit4f30dd013c9bcb3a23d351e5d388433c76439560 (patch)
treec97ba3754d625091241eea1a1c749ab3871df6bf
parentea2acbe335d7ac9a0a8d913299cdb8023932c081 (diff)
downloadanastasis-gtk-4f30dd013c9bcb3a23d351e5d388433c76439560.tar.gz
anastasis-gtk-4f30dd013c9bcb3a23d351e5d388433c76439560.tar.bz2
anastasis-gtk-4f30dd013c9bcb3a23d351e5d388433c76439560.zip
-fix bad free
-rw-r--r--src/anastasis/anastasis-gtk_handle-policy-activate.c9
-rw-r--r--src/anastasis/anastasis-gtk_pe-edit-policy.c6
2 files changed, 6 insertions, 9 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-policy-activate.c b/src/anastasis/anastasis-gtk_handle-policy-activate.c
index ddb89ec..006dea1 100644
--- a/src/anastasis/anastasis-gtk_handle-policy-activate.c
+++ b/src/anastasis/anastasis-gtk_handle-policy-activate.c
@@ -33,10 +33,10 @@
void
anastasis_gtk_review_policy_treeview_row_activated_cb (
- GtkTreeView *tree_view,
- GtkTreePath *path,
- GtkTreeViewColumn *column,
- gpointer user_data)
+ GtkTreeView *tree_view,
+ GtkTreePath *path,
+ GtkTreeViewColumn *column,
+ gpointer user_data)
{
GtkTreeModel *tm = gtk_tree_view_get_model (tree_view);
GtkTreeIter iter;
@@ -52,7 +52,6 @@ anastasis_gtk_review_policy_treeview_row_activated_cb (
GNUNET_break (0);
return;
}
- gtk_tree_path_free (path);
gtk_tree_model_get (tm,
&iter,
AG_PRMC_POLICY_INDEX,
diff --git a/src/anastasis/anastasis-gtk_pe-edit-policy.c b/src/anastasis/anastasis-gtk_pe-edit-policy.c
index eece3ee..2647680 100644
--- a/src/anastasis/anastasis-gtk_pe-edit-policy.c
+++ b/src/anastasis/anastasis-gtk_pe-edit-policy.c
@@ -277,18 +277,16 @@ ap_matches (const char *type,
json_t *methods;
size_t index;
json_t *method;
-
const char *status;
status = json_string_value (json_object_get (ap,
- "status"));
-
+ "status"));
if (0 != strcasecmp (status,
"ok"))
{
+ /* provider is down, cannot proceed */
return false;
}
-
methods = json_object_get (ap,
"methods");
GNUNET_break (NULL != methods);