Fixed memory leaks caused by not freeing bitvector
Especially each data message from SGSN caused two memory leaks, which
resulted in increasing memory usage while receiving date from SGSN.
diff --git a/src/RLCMACTest.cpp b/src/RLCMACTest.cpp
index 2ffff8f..843dc21 100644
--- a/src/RLCMACTest.cpp
+++ b/src/RLCMACTest.cpp
@@ -141,6 +141,8 @@
bitvec_free(vector);
free(data);
}
+
+ bitvec_free(resultVector);
}
@@ -201,6 +203,8 @@
bitvec_free(vector);
free(data);
}
+
+ bitvec_free(resultVector);
}
int main(int argc, char *argv[])