From bddb7c686e3d1aeb156722adc64b6c35ae720f87 Mon Sep 17 00:00:00 2001 From: beck <> Date: Thu, 17 Apr 2014 13:37:50 +0000 Subject: Change library to use intrinsic memory allocation functions instead of OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free --- src/lib/libcrypto/pqueue/pqueue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/pqueue/pqueue.c') 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 pitem * pitem_new(unsigned char *prio64be, void *data) { - pitem *item = (pitem *) OPENSSL_malloc(sizeof(pitem)); + pitem *item = (pitem *) malloc(sizeof(pitem)); if (item == NULL) return NULL; memcpy(item->priority,prio64be,sizeof(item->priority)); @@ -86,13 +86,13 @@ pitem_free(pitem *item) { if (item == NULL) return; - OPENSSL_free(item); + free(item); } pqueue_s * pqueue_new() { - pqueue_s *pq = (pqueue_s *) OPENSSL_malloc(sizeof(pqueue_s)); + pqueue_s *pq = (pqueue_s *) malloc(sizeof(pqueue_s)); if (pq == NULL) return NULL; memset(pq, 0x00, sizeof(pqueue_s)); @@ -104,7 +104,7 @@ pqueue_free(pqueue_s *pq) { if (pq == NULL) return; - OPENSSL_free(pq); + free(pq); } pitem * -- cgit v1.2.3-55-g6feb