aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tag_pool.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tag_pool.c b/src/tag_pool.c
index 1c7ae31ab..8427fda9e 100644
--- a/src/tag_pool.c
+++ b/src/tag_pool.c
@@ -17,7 +17,6 @@
*/
#include "tag_pool.h"
-#include "utils.h"
#include <assert.h>
@@ -71,7 +70,7 @@ static struct slot *slot_alloc(struct slot *next,
{
struct slot *slot;
- slot = xmalloc(sizeof(*slot) - sizeof(slot->item.value) + length + 1);
+ slot = g_malloc(sizeof(*slot) - sizeof(slot->item.value) + length + 1);
slot->next = next;
slot->ref = 1;
slot->item.type = type;
@@ -154,5 +153,5 @@ void tag_pool_put_item(struct tag_item *item)
}
*slot_p = slot->next;
- free(slot);
+ g_free(slot);
}