From 1d6d39d2ea11262ffaaf2532358461fbcb8bbb67 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 3 Nov 2011 11:31:37 +0000 Subject: [PATCH] Missed this free/re-strdup This commit was SVN r25426. --- ompi/tools/ompi_info/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/tools/ompi_info/output.c b/ompi/tools/ompi_info/output.c index f43b12ee8c..e26790e401 100644 --- a/ompi/tools/ompi_info/output.c +++ b/ompi/tools/ompi_info/output.c @@ -89,8 +89,8 @@ void ompi_info_out(const char *pretty_message, const char *plain_message, const ++i; } newv = strdup(v + i); - free(v); - v = newv; + free(v_to_free); + v_to_free = v = newv; len = strlen(v); } if (len > 0 && isspace(v[len - 1])) {