Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
Use alloc helper in miner.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Mar 4, 2015
1 parent 23bfc16 commit 0ee6d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner.h
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ static inline void string_elist_add(const char *s, struct list_head *head)
{
struct string_elist *n;

n = calloc(1, sizeof(*n));
n = cgcalloc(1, sizeof(*n));
n->string = strdup(s);
n->free_me = true;
list_add_tail(&n->list, head);
Expand Down

0 comments on commit 0ee6d20

Please sign in to comment.