]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/test.c
plug leaks
[openldap] / libraries / libldap / test.c
index 1affb1c71444e6e94ed9c61818a31d5147ee6e9c..88060893121c4fd5a198f3dc6072e40a618d2585 100644 (file)
@@ -205,6 +205,10 @@ get_modlist(
                                    6 ) == 0 ) {
                                        if ( file_read( tmp.mod_values[i] + 6,
                                            bvals[i] ) < 0 ) {
+                                               free( bvals );
+                                               for ( i = 0; i<num; i++ )
+                                                       free( result[ i ] );
+                                               free( result );
                                                return( NULL );
                                        }
                                } else {