]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix compilation warning, and partially de-leak.
authorJulian Seward <jseward@acm.org>
Thu, 23 Nov 2006 15:14:18 +0000 (15:14 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 23 Nov 2006 15:14:18 +0000 (15:14 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6370

auxprogs/mpiwrap_type_test.c

index c56b7ef194a92813f449a75cba90c59785408f72..b3db73d10007f6c2051073f2b799c2261b5de581 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <assert.h>
 #include "mpi.h"
 #include "../memcheck/memcheck.h"
@@ -208,6 +209,10 @@ void sendToMyself ( Bool commit_free, Ty* tyP, char* name )
    for (i = 0; i < ub; i++)
       printf("%c", characterise(rbuf[i]));
    printf("\n");
+
+   free(sbuf);
+   free(rbuf);
+   free(rbuf_walk);
 }