lib/kadm5: _kadm5_s_init_hooks
prevent leak of configuration strings introduced by
f62b00e33c ("kadm5: improve
kadm5 hook logging (#397)")
Change-Id: I12c028241e6ee0175599b6edc6a334c6efb858d9
			
			
This commit is contained in:
		@@ -160,6 +160,7 @@ _kadm5_s_init_hooks(kadm5_server_context *ctx)
 | 
				
			|||||||
	krb5_warnx(context, "Loaded kadm5 hook `%s' by vendor `%s' (API version %u)",
 | 
						krb5_warnx(context, "Loaded kadm5 hook `%s' by vendor `%s' (API version %u)",
 | 
				
			||||||
		   hook->name, hook->vendor, hook->version);
 | 
							   hook->name, hook->vendor, hook->version);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    krb5_config_free_strings(hooks);
 | 
				
			||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
    krb5_warnx(context, "kadm5 hooks configured, but platform "
 | 
					    krb5_warnx(context, "kadm5 hooks configured, but platform "
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user