]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 440: because we initialize base with malloc we should free(base) rather than...
authorLee Howard <faxguy@howardsilvan.com>
Wed, 10 Sep 2003 19:00:39 +0000 (19:00 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Wed, 10 Sep 2003 19:00:39 +0000 (19:00 +0000)
faxd/HDLCFrame.c++

index f31fefc9d86ed2009f97e7471c5c9a3e27f4f42a..ccb7c7f09dc5cb805e1c2371b192e67814944de7 100644 (file)
@@ -43,7 +43,7 @@ HDLCFrame::HDLCFrame(u_int fo)
 
 HDLCFrame::~HDLCFrame()
 {
-    if (base != buf) delete base;
+    if (base != buf) free(base);
 }
 
 HDLCFrame::HDLCFrame(const HDLCFrame& other)