]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
remove memory leak from testbed
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 18 Sep 2009 12:34:30 +0000 (12:34 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 18 Sep 2009 12:34:30 +0000 (12:34 +0000)
git-svn-id: file:///svn/unbound/trunk@1844 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/fake_event.c

index d5e31cabf348884957fa7a605c5154d90f32660e..e13126e0a2335e8a2ff0c63e4456f333675ba6b2 100644 (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);
        }