git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7894
matinv.stderr.exp \
matinv.stdout.exp \
matinv.vgtest \
+ memory_allocation.stderr.exp \
+ memory_allocation.vgtest \
omp_matinv.stderr.exp \
omp_matinv.stdout.exp \
omp_matinv.vgtest \
hg06_readshared \
linuxthreads_det \
matinv \
+ memory_allocation \
pth_barrier \
pth_broadcast \
pth_cond_race \
matinv_SOURCES = matinv.c
matinv_LDADD = -lpthread -lm
+memory_allocation_SOURCES = memory_allocation.c
+memory_allocation_LDADD = -lpthread -lm
+
pth_barrier_SOURCES = pth_barrier.c
pth_barrier_LDADD = -lpthread
--- /dev/null
+/* Repeatedly allocate and free memory. Tests whether drd */
+/* really frees memory allocated by a client. See also */
+/* http://bugs.kde.org/show_bug.cgi?id=161036 */
+
+#include <stdlib.h>
+
+int main()
+{
+ int i;
+ for (i = 0; i < 100000; i++)
+ {
+ free(malloc(40960));
+ }
+ return 0;
+}
--- /dev/null
+
+
+ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
--- /dev/null
+prog: memory-allocation