Fix a long date memory leak in webserver.c:StrStr().
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
Version 1.6.8
|
Version 1.6.8
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2010-10-20 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
|
||||||
|
Fix a long date memory leak in webserver.c:StrStr().
|
||||||
|
|
||||||
2010-10-19 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
|
2010-10-19 Marcelo Roberto Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
|
||||||
Bug fix in select of miniserver.c
|
Bug fix in select of miniserver.c
|
||||||
|
|||||||
@@ -820,12 +820,12 @@ StrStr( char *S1,
|
|||||||
ToUpperCase( Str1 );
|
ToUpperCase( Str1 );
|
||||||
ToUpperCase( Str2 );
|
ToUpperCase( Str2 );
|
||||||
Ptr = strstr( Str1, Str2 );
|
Ptr = strstr( Str1, Str2 );
|
||||||
if( Ptr == NULL )
|
if( Ptr == NULL ) {
|
||||||
return NULL;
|
Ret = NULL;
|
||||||
|
} else {
|
||||||
Pos = Ptr - Str1;
|
Pos = Ptr - Str1;
|
||||||
|
Ret = S1 + Pos;
|
||||||
Ret = S1 + Pos;
|
}
|
||||||
|
|
||||||
free( Str1 );
|
free( Str1 );
|
||||||
free( Str2 );
|
free( Str2 );
|
||||||
|
|||||||
Reference in New Issue
Block a user