aboutsummaryrefslogtreecommitdiffstats
path: root/src/trust-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trust-item.c')
-rw-r--r--src/trust-item.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/trust-item.c b/src/trust-item.c
index f9378c68..9c1a57ea 100644
--- a/src/trust-item.c
+++ b/src/trust-item.c
@@ -31,6 +31,7 @@
#include "ops.h"
#include "sema.h"
#include "debug.h"
+#include "mem.h"
/* Protects all reference counters in trust items. All other accesses
@@ -45,7 +46,7 @@ _gpgme_trust_item_new (gpgme_trust_item_t *r_item)
{
gpgme_trust_item_t item;
- item = calloc (1, sizeof *item);
+ item = _gpgme_calloc (1, sizeof *item);
if (!item)
return gpg_error_from_syserror ();
item->_refs = 1;
@@ -88,8 +89,8 @@ gpgme_trust_item_unref (gpgme_trust_item_t item)
UNLOCK (trust_item_ref_lock);
if (item->name)
- free (item->name);
- free (item);
+ _gpgme_free (item->name);
+ _gpgme_free (item);
}