]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10000 slapd-watcher: plug potential leak
authorHoward Chu <hyc@openldap.org>
Thu, 2 Feb 2023 15:19:46 +0000 (15:19 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 26 Apr 2023 17:31:59 +0000 (17:31 +0000)
tests/progs/slapd-watcher.c

index 4cbd336eaa0172590eed133905b970f98be5c4ab..50d9d1dfbb1d84efe97e18d9d6197018006e4b13 100644 (file)
@@ -539,12 +539,12 @@ setup_server( struct tester_conn_args *config, server *sv )
                                                }
                                        }
                                }
-                               ldap_msgfree( res );
                                break;
 
                        default:
                                tester_ldap_error( ld, "ldap_search_ext_s(baseDN)", sv->url );
                        }
+                       ldap_msgfree( res );
                }
        }