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.c b/nlsr.c index dce1e8e..1b344ff 100644 --- a/nlsr.c +++ b/nlsr.c
@@ -478,8 +478,8 @@ printf(" Wrong Command Format ( logdir /path/to/logdir/ )\n"); return; } - if ( nlsr->logDir) - free(nlsr->logDir); + //if ( nlsr->logDir) + //free(nlsr->logDir); nlsr->logDir=(char *)calloc(strlen(dir)+1,sizeof(char)); memcpy(nlsr->logDir,dir,strlen(dir)+1); }