extend test.c a bit.
authorMilian Wolff <mail@milianw.de>
Thu, 15 May 2014 14:09:58 +0000 (16:09 +0200)
committerMilian Wolff <mail@milianw.de>
Thu, 15 May 2014 14:09:58 +0000 (16:09 +0200)
test.c

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
+}