diff options
Diffstat (limited to 'pjlib/src/pjlib-test/pool_perf.c')
-rw-r--r-- | pjlib/src/pjlib-test/pool_perf.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/pjlib/src/pjlib-test/pool_perf.c b/pjlib/src/pjlib-test/pool_perf.c index c65b6e40..32487763 100644 --- a/pjlib/src/pjlib-test/pool_perf.c +++ b/pjlib/src/pjlib-test/pool_perf.c @@ -61,27 +61,29 @@ static int pool_test_pool() } /* Symbian doesn't have malloc()/free(), so we use new/delete instead */ -#if defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0 - +//#if defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0 +#if 0 static int pool_test_malloc_free() { int i; /* must be signed */ for (i=0; i<COUNT; ++i) { - p[i] = new char[sizes[i]]; - if (!p[i]) { - PJ_LOG(3,(THIS_FILE," error: malloc failed to allocate %d bytes", - sizes[i])); - --i; - while (i >= 0) - delete [] p[i], --i; - return -1; - } - *p[i] = '\0'; + p[i] = new char[sizes[i]]; + if (!p[i]) { + PJ_LOG(3,(THIS_FILE," error: malloc failed to allocate %d bytes", + sizes[i])); + --i; + while (i >= 0) { + delete [] p[i]; + --i; + } + return -1; + } + *p[i] = '\0'; } for (i=0; i<COUNT; ++i) { - delete [] p[i]; + delete [] p[i]; } return 0; |