Commit b096e9964975f8bf0017cb0db8a5db13053f2f16

Authored by Jay Berkenbilt
1 parent 1437f805

buffer test: fix memory leak in test code

Forgot to delete a buffer in the test driver. There was no memory leak
or memory error in any installed code.
Showing 2 changed files with 1 additions and 2 deletions
1 Soon 1 Soon
2 ==== 2 ====
3 3
4 - * libtests buffer test fails with address sanitizer.  
5 -  
6 * Figure out how to render Gajić correctly in the PDF version of the 4 * Figure out how to render Gajić correctly in the PDF version of the
7 qpdf manual. 5 qpdf manual.
8 6
libtests/buffer.cc
@@ -67,6 +67,7 @@ int main() @@ -67,6 +67,7 @@ int main()
67 Pl_Buffer bp3("bp3"); 67 Pl_Buffer bp3("bp3");
68 b = bp3.getBuffer(); 68 b = bp3.getBuffer();
69 std::cout << "size: " << b->getSize() << std::endl; 69 std::cout << "size: " << b->getSize() << std::endl;
  70 + delete b;
70 } 71 }
71 catch (std::exception& e) 72 catch (std::exception& e)
72 { 73 {