]> git.sur5r.net Git - openldap/commitdiff
Plug minor memory leak
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 22 Aug 1999 03:36:19 +0000 (03:36 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 22 Aug 1999 03:36:19 +0000 (03:36 +0000)
servers/slapd/main.c

index 53398e99933097c65ec6cb17fed3d6352a20a40a..e70186bb701767822ae2dd6609cb18dd28f0e19b 100644 (file)
@@ -226,6 +226,7 @@ int main( int argc, char **argv )
                             )) != EOF ) {
                switch ( i ) {
                case 'h':       /* listen URLs */
+                       if ( urls != NULL ) free( urls );
                        urls = ch_strdup( optarg );
             break;