[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] branch master updated: -fix bad free
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] branch master updated: -fix bad free |
Date: |
Tue, 28 Jun 2022 19:21:31 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis-gtk.
The following commit(s) were added to refs/heads/master by this push:
new 4f30dd0 -fix bad free
4f30dd0 is described below
commit 4f30dd013c9bcb3a23d351e5d388433c76439560
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jun 28 19:21:29 2022 +0200
-fix bad free
---
src/anastasis/anastasis-gtk_handle-policy-activate.c | 9 ++++-----
src/anastasis/anastasis-gtk_pe-edit-policy.c | 6 ++----
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);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis-gtk] branch master updated: -fix bad free,
gnunet <=