[Liblas-commits] hg: don't leak VLR data when validating in zip reader

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Jan 12 15:30:03 EST 2011


details:   http://hg.liblas.orghg/rev/6b35330c4036
changeset: 2739:6b35330c4036
user:      Howard Butler <hobu.inc at gmail.com>
date:      Wed Jan 12 14:29:50 2011 -0600
description:
don't leak VLR data when validating in zip reader

diffstat:

 src/detail/zippoint.cpp |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r e3efe5548e3b -r 6b35330c4036 src/detail/zippoint.cpp
--- a/src/detail/zippoint.cpp	Wed Jan 12 10:50:47 2011 -0600
+++ b/src/detail/zippoint.cpp	Wed Jan 12 14:29:50 2011 -0600
@@ -365,6 +365,9 @@
     }
 
     assert(p == data + record_length_after_header);
+    
+    if (data != 0 )
+        delete[] data;
 
     return true;
 }


More information about the Liblas-commits mailing list