From b3e7bc3a6fd47b2fa6d97ceb8ffb42ad20dd9057 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 9 Sep 2008 12:42:06 -0300 Subject: [PATCH 1/1] Match realloc/free with malloc rather than new. --- lily/pfb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lily/pfb.cc b/lily/pfb.cc index 3cee206189..438fe78497 100644 --- a/lily/pfb.cc +++ b/lily/pfb.cc @@ -21,7 +21,7 @@ using namespace std; char * pfb2pfa (Byte const *pfb, int length) { - char *out = new char[1]; + char *out = (char*) malloc(sizeof(char)); int olen = 0; Byte const *p = pfb; -- 2.39.2