File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -637,10 +637,10 @@ zlog_bool zlog_stream_set_msg_suffix(
637637 if (suffix != NULL ) {
638638 stream -> msg_suffix_len = strlen (suffix );
639639 len = stream -> msg_suffix_len + 1 ;
640- stream -> msg_suffix = malloc (len );
641640 if (stream -> msg_suffix != NULL ) {
642641 free (stream -> msg_suffix );
643642 }
643+ stream -> msg_suffix = malloc (len );
644644 if (stream -> msg_suffix == NULL ) {
645645 return ZLOG_FALSE ;
646646 }
@@ -650,10 +650,10 @@ zlog_bool zlog_stream_set_msg_suffix(
650650 if (final_suffix != NULL ) {
651651 stream -> msg_final_suffix_len = strlen (final_suffix );
652652 len = stream -> msg_final_suffix_len + 1 ;
653- stream -> msg_final_suffix = malloc (len );
654653 if (stream -> msg_final_suffix != NULL ) {
655654 free (stream -> msg_suffix );
656655 }
656+ stream -> msg_final_suffix = malloc (len );
657657 if (stream -> msg_final_suffix == NULL ) {
658658 return ZLOG_FALSE ;
659659 }
You can’t perform that action at this time.
0 commit comments