Ignore:
Timestamp:
Nov 12, 2012, 5:38:52 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/lib/debug.c

    r414 r736  
    658658                        fname = SMB_STRDUP(logfname);
    659659                        if (!fname) {
     660                                TALLOC_FREE(logfname);
    660661                                return false;
    661662                        }
    662663                }
     664                TALLOC_FREE(logfname);
    663665        }
    664666
     
    10291031        if( lp_timestamp_logs() || lp_debug_prefix_timestamp() || !(lp_loaded()) ) {
    10301032                char header_str[200];
     1033                char *curtime = current_timestring(talloc_tos(),
     1034                                        lp_debug_hires_timestamp());
    10311035
    10321036                header_str[0] = '\0';
     
    10511055                                 default_classname_table[cls]);
    10521056                }
    1053  
     1057
    10541058                /* Print it all out at once to prevent split syslog output. */
    10551059                if( lp_debug_prefix_timestamp() ) {
    10561060                    (void)Debug1( "[%s, %2d%s] ",
    1057                         current_timestring(talloc_tos(),
    1058                                            lp_debug_hires_timestamp()),
     1061                        curtime,
    10591062                        level, header_str);
    10601063                } else {
    10611064                    (void)Debug1( "[%s, %2d%s] %s(%s)\n",
    1062                         current_timestring(talloc_tos(),
    1063                                            lp_debug_hires_timestamp()),
     1065                        curtime,
    10641066                        level, header_str, location, func );
    10651067                }
     1068                TALLOC_FREE(curtime);
    10661069        }
    10671070
Note: See TracChangeset for help on using the changeset viewer.