From f857012f7a1553705aafc45b231e13fc598bf5a2 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 1 Mar 2002 10:33:14 +0000 Subject: [PATCH] gah! the putenv() stuff was not causing memleaks. Only 2 memleaks after all (1 serious, 1 minor). Both did sum up in time --- src/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index 1eb46b50..8b408bac 100644 --- a/src/main.c +++ b/src/main.c @@ -245,14 +245,12 @@ SetupEnvironment(WScreen *scr) *ptr = 0; snprintf(buf, sizeof(buf), ".%i", scr->screen); strcat(tmp, buf); - putenv(tmp); - wfree(tmp); + putenv(tmp); } tmp = wmalloc(60); snprintf(tmp, 60, "WRASTER_COLOR_RESOLUTION%i=%i", scr->screen, scr->rcontext->attribs->colors_per_channel); putenv(tmp); - wfree(tmp); } @@ -597,7 +595,6 @@ main(int argc, char **argv) str = wstrconcat("WMAKER_BIN_NAME=", argv[0]); putenv(str); - wfree(str); ArgCount = argc; Arguments = argv; @@ -785,7 +782,6 @@ main(int argc, char **argv) snprintf(str, len, "DISPLAY=%s", DisplayName); } putenv(str); - wfree(str); #ifdef DEBUG if (doSync)