Browse Source

Rollback of previous commit.
string should not be freed once put'd !

woollybah 10 years ago
parent
commit
318d44c2f6
1 changed files with 1 additions and 3 deletions
  1. 1 3
      stdc.mod/stdc.c

+ 1 - 3
stdc.mod/stdc.c

@@ -217,9 +217,7 @@ int putenv_( BBString *str ){
 	char *t=bbTmpUTF8String( str );
 	char *p=(char*)malloc( strlen(t)+1 );
 	strcpy( p,t );
-	int res = putenv( p );
-	free(p);
-	return res;
+	return putenv( p );
 }
 
 BBString *getenv_( BBString *str ){