=> breaks mingw build
=> memleak fixes reported by cppcheck
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1198347 13f79535-47bb-0310-9956-
ffa450edef68
#define __STDC_LIMIT_MACROS
#define __STDC_FORMAT_MACROS
#include <stdio.h>
-#ifndef _WIN32
#include <inttypes.h>
-#else
-#include <stdint.h>
-#endif
#include <limits.h>
#include "main.h"
#include "globals.h"
eventInfo* toEnqueue = new eventInfo();
toEnqueue->eventBuff_ = (uint8_t *)std::malloc((sizeof(uint8_t) * eventLen) + 4);
if (toEnqueue->eventBuff_ == NULL) {
+ delete toEnqueue;
throw std::bad_alloc();
}
// first 4 bytes is the event length
template <class Transport_>
class CoupledTransports {
public:
+ virtual ~CoupledTransports() {}
typedef Transport_ TransportType;
CoupledTransports() : in(), out() {}