@@ -829,28 +829,28 @@ struct flb_output_instance *flb_output_new(struct flb_config *config,
829829# endif
830830#endif
831831
832- if (plugin -> flags & FLB_OUTPUT_NET ) {
833- output_uri = flb_plugin_alias_rewrite (FLB_PLUGIN_OUTPUT , output_name );
834- if (output_uri == FLB_PLUGIN_ALIAS_ERR ) {
835- if ((instance -> flags & FLB_OUTPUT_SYNCHRONOUS ) &&
836- instance -> singleplex_queue != NULL ) {
837- flb_task_queue_destroy (instance -> singleplex_queue );
838- }
839- if (instance -> callback != NULL ) {
840- flb_callback_destroy (instance -> callback );
841- }
842- if (plugin -> type != FLB_OUTPUT_PLUGIN_CORE &&
843- instance -> context != NULL ) {
844- flb_free (instance -> context );
845- }
846- flb_free (instance -> http_server_config );
847- flb_free (instance );
848- return NULL ;
832+ output_uri = flb_plugin_alias_rewrite (FLB_PLUGIN_OUTPUT , output_name );
833+ if (output_uri == FLB_PLUGIN_ALIAS_ERR ) {
834+ if ((instance -> flags & FLB_OUTPUT_SYNCHRONOUS ) &&
835+ instance -> singleplex_queue != NULL ) {
836+ flb_task_queue_destroy (instance -> singleplex_queue );
837+ }
838+ if (instance -> callback != NULL ) {
839+ flb_callback_destroy (instance -> callback );
849840 }
850- else if (output_uri != NULL ) {
851- output_name = output_uri ;
841+ if (plugin -> type != FLB_OUTPUT_PLUGIN_CORE &&
842+ instance -> context != NULL ) {
843+ flb_free (instance -> context );
852844 }
845+ flb_free (instance -> http_server_config );
846+ flb_free (instance );
847+ return NULL ;
848+ }
849+ else if (output_uri != NULL ) {
850+ output_name = output_uri ;
851+ }
853852
853+ if (plugin -> flags & FLB_OUTPUT_NET ) {
854854 ret = flb_net_host_set (plugin -> name , & instance -> host , output_name );
855855 if (output_uri != NULL ) {
856856 flb_free (output_uri );
0 commit comments