- Fixed memory leak for OMG

- Fixed compiler warning for OMG

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4385 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Cedric Roux
2013-11-13 15:45:11 +00:00
parent b564e37985
commit b590b550a1
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ mapping mob_type[] =
//#endif
NodePtr create_node(void) {
NodePtr ptr;
ptr = malloc(sizeof(node_struct));
ptr = calloc(1, sizeof(node_struct));
return ptr;
}
@@ -91,7 +91,7 @@ double randomGen(double a, double b){
MobilityPtr create_mobility(void) {
MobilityPtr ptr;
ptr = malloc(sizeof(mobility_struct));
ptr = calloc(1, sizeof(mobility_struct));
return ptr;
}