bmx-ng / pub.mod

BlitzMax NG Pub modules port.
7 stars 8 forks source link

[infer] Memory Leak #3

Closed woollybah closed 9 years ago

woollybah commented 9 years ago

The following code in stdc.c leaks p, from line 216 :

int putenv_( BBString *str ){
        char *t=bbTmpUTF8String( str );
        char *p=(char*)malloc( strlen(t)+1 );
        strcpy( p,t );
        return putenv( p );
}