소스 검색

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

woollybah 10 년 전
부모
커밋
318d44c2f6
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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 ){