summaryrefslogtreecommitdiff
path: root/lib/ccan/tally/test/run-min-max.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-06-21 11:20:07 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-06-21 05:52:12 +0200
commit894b0273fcff28dfaef80ce7be1bcc35d47aed65 (patch)
tree89403d9d033612d588014d47320437be488872af /lib/ccan/tally/test/run-min-max.c
parent233a6223b2ff84dcd965d0f295fbe88ba50ce5c5 (diff)
downloadsamba-894b0273fcff28dfaef80ce7be1bcc35d47aed65.tar.gz
samba-894b0273fcff28dfaef80ce7be1bcc35d47aed65.tar.bz2
samba-894b0273fcff28dfaef80ce7be1bcc35d47aed65.zip
lib/ccan/tally.h: update for FreeBSD compile.
Based on commit 0284423676209380a2e07086b9b356096a2f93e6 from CCAN: Author: Rusty Russell <rusty@rustcorp.com.au> Date: Tue Jun 21 10:43:31 2011 +0930 tally: fix FreeBSD compile, memleak in tests. Posix says ssize_t is in sys/types.h; on Linux stdlib.h is enough. Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Jun 21 05:52:12 CEST 2011 on sn-devel-104
Diffstat (limited to 'lib/ccan/tally/test/run-min-max.c')
-rw-r--r--lib/ccan/tally/test/run-min-max.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ccan/tally/test/run-min-max.c b/lib/ccan/tally/test/run-min-max.c
index ffb0f2eff4..c92f6d382a 100644
--- a/lib/ccan/tally/test/run-min-max.c
+++ b/lib/ccan/tally/test/run-min-max.c
@@ -16,5 +16,6 @@ int main(void)
ok1(tally_max(tally) == i);
ok1(tally_min(tally) == -i);
}
+ free(tally);
return exit_status();
}