summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pqueue/pqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/pqueue/pqueue.c')
-rw-r--r--src/lib/libcrypto/pqueue/pqueue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/pqueue/pqueue.c b/src/lib/libcrypto/pqueue/pqueue.c
index eab13a1250..3ca8e049e4 100644
--- a/src/lib/libcrypto/pqueue/pqueue.c
+++ b/src/lib/libcrypto/pqueue/pqueue.c
@@ -70,7 +70,7 @@ typedef struct _pqueue
70pitem * 70pitem *
71pitem_new(unsigned char *prio64be, void *data) 71pitem_new(unsigned char *prio64be, void *data)
72 { 72 {
73 pitem *item = (pitem *) OPENSSL_malloc(sizeof(pitem)); 73 pitem *item = (pitem *) malloc(sizeof(pitem));
74 if (item == NULL) return NULL; 74 if (item == NULL) return NULL;
75 75
76 memcpy(item->priority,prio64be,sizeof(item->priority)); 76 memcpy(item->priority,prio64be,sizeof(item->priority));
@@ -86,13 +86,13 @@ pitem_free(pitem *item)
86 { 86 {
87 if (item == NULL) return; 87 if (item == NULL) return;
88 88
89 OPENSSL_free(item); 89 free(item);
90 } 90 }
91 91
92pqueue_s * 92pqueue_s *
93pqueue_new() 93pqueue_new()
94 { 94 {
95 pqueue_s *pq = (pqueue_s *) OPENSSL_malloc(sizeof(pqueue_s)); 95 pqueue_s *pq = (pqueue_s *) malloc(sizeof(pqueue_s));
96 if (pq == NULL) return NULL; 96 if (pq == NULL) return NULL;
97 97
98 memset(pq, 0x00, sizeof(pqueue_s)); 98 memset(pq, 0x00, sizeof(pqueue_s));
@@ -104,7 +104,7 @@ pqueue_free(pqueue_s *pq)
104 { 104 {
105 if (pq == NULL) return; 105 if (pq == NULL) return;
106 106
107 OPENSSL_free(pq); 107 free(pq);
108 } 108 }
109 109
110pitem * 110pitem *