commit | 0b60ba975cd0a00c3ba525b12673dd83d4b16962 | [log] [tgz] |
---|---|---|
author | akmhoque <akmhoque@gmail.com> | Mon Feb 25 17:55:35 2013 -0600 |
committer | akmhoque <akmhoque@gmail.com> | Mon Feb 25 17:55:35 2013 -0600 |
tree | 658cf79965a2f841b001c507802ba9b2d7c0b23b | |
parent | aa2adc14fcce3031b2e46115fac808af67e18804 [diff] [blame] |
Memory Leak Reduction
diff --git a/nlsr_lsdb.c b/nlsr_lsdb.c index 4617096..8e4fe16 100644 --- a/nlsr_lsdb.c +++ b/nlsr_lsdb.c
@@ -903,8 +903,8 @@ new_adj_lsa->no_link=adj_lsa->no_link; - if(new_adj_lsa->body ) - free(new_adj_lsa->body); + //if(new_adj_lsa->body ) + //free(new_adj_lsa->body); new_adj_lsa->body=(char *)calloc(strlen(adj_lsa->body)+1,sizeof(char)); //memset(new_adj_lsa->body,0,strlen(adj_lsa->body)+1); memcpy(new_adj_lsa->body,adj_lsa->body,strlen(adj_lsa->body)+1);