remove memory leak from testbed

git-svn-id: file:///svn/unbound/trunk@1844 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-09-18 12:34:30 +00:00
parent aff6654685
commit 19ab8e1429

View file

@ -468,6 +468,7 @@ time_passes(struct replay_runtime* runtime, struct replay_moment* mom)
if(!xp) fatal_exit("could not macro expand %s", mom->string);
verbose(VERB_ALGO, "EVAL %s", mom->string);
sec = atof(xp);
free(xp);
tv.tv_sec = (int)sec;
tv.tv_usec = (int)((sec - (double)tv.tv_sec) *1000000. + 0.5);
}