|
From: <sv...@va...> - 2006-11-23 15:14:22
|
Author: sewardj
Date: 2006-11-23 15:14:18 +0000 (Thu, 23 Nov 2006)
New Revision: 6370
Log:
Fix compilation warning, and partially de-leak.
Modified:
trunk/auxprogs/mpiwrap_type_test.c
Modified: trunk/auxprogs/mpiwrap_type_test.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/auxprogs/mpiwrap_type_test.c 2006-11-23 13:04:30 UTC (rev 6369)
+++ trunk/auxprogs/mpiwrap_type_test.c 2006-11-23 15:14:18 UTC (rev 6370)
@@ -8,6 +8,7 @@
=20
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <assert.h>
#include "mpi.h"
#include "../memcheck/memcheck.h"
@@ -208,6 +209,10 @@
for (i =3D 0; i < ub; i++)
printf("%c", characterise(rbuf[i]));
printf("\n");
+
+ free(sbuf);
+ free(rbuf);
+ free(rbuf_walk);
}
=20
=20
|