projects
/
sdk
/
tools
/
heaptrack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9f3286
)
extend test.c a bit.
author
Milian Wolff
<mail@milianw.de>
Thu, 15 May 2014 14:09:58 +0000
(16:09 +0200)
committer
Milian Wolff
<mail@milianw.de>
Thu, 15 May 2014 14:09:58 +0000
(16:09 +0200)
test.c
patch
|
blob
|
history
diff --git
a/test.c
b/test.c
index
bcc93e6
..
ef5c6a1
100644
(file)
--- a/
test.c
+++ b/
test.c
@@
-6,9
+6,11
@@
int main()
int i;
// make app deterministic
srand(0);
+ void* p = malloc(1);
for (i = 0; i < 10000; ++i) {
malloc(rand() % 1000);
usleep(100);
}
+ free(p);
return 0;
-}
\ No newline at end of file
+}