Update output.c

Fixed memory leak in saveoutput() where temporary array "x" was allocated but never freed
This commit is contained in:
Mike Kane
2013-07-08 21:22:03 -04:00
parent e0f262629c
commit 43bb601022

View File

@@ -338,6 +338,8 @@ int saveoutput()
/* Write out node results, then link results */
for (j=DEMAND; j<=QUALITY; j++) ERRCODE(nodeoutput(j,x,Ucf[j]));
for (j=FLOW; j<=FRICTION; j++) ERRCODE(linkoutput(j,x,Ucf[j]));
free(x);
return(errcode);
} /* End of saveoutput */