mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-01 20:39:38 -05:00
remove memory leak from testbed
git-svn-id: file:///svn/unbound/trunk@1844 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
aff6654685
commit
19ab8e1429
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue