Skip to content

Commit bf8d716

Browse files
committed
Remove extraneous Heap.h include #1649
1 parent 3cbacd0 commit bf8d716

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/SSLSocket.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
*/
2828

2929
#if defined(OPENSSL)
30-
#include "Heap.h"
31-
3230
#include "SocketBuffer.h"
3331
#include "MQTTClient.h"
3432
#include "MQTTProtocolOut.h"
@@ -37,14 +35,14 @@
3735
#include "StackTrace.h"
3836
#include "Socket.h"
3937

40-
#include "Heap.h"
41-
4238
#include <string.h>
4339
#include <openssl/ssl.h>
4440
#include <openssl/err.h>
4541
#include <openssl/crypto.h>
4642
#include <openssl/x509v3.h>
4743

44+
#include "Heap.h" /* must always be the last header as malloc, free are redefined */
45+
4846
extern Sockets mod_s;
4947

5048
static int SSLSocket_error(char* aString, SSL* ssl, SOCKET sock, int rc, int (*cb)(const char *str, size_t len, void *u), void* u);

0 commit comments

Comments
 (0)