Changeset 6479


Ignore:
Timestamp:
Aug 11, 2008, 4:40:28 AM (13 years ago)
Author:
charles
Message:

(libT 1.3x) #1178: Add missing va_end()s

Location:
branches/1.3x/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/libtransmission/crypto.c

    r6425 r6479  
    5151        SHA1_Update( &sha, content, content_len );
    5252    }
     53    va_end( vl );
    5354    SHA1_Final( setme, &sha );
    5455}
  • branches/1.3x/libtransmission/utils.c

    r6425 r6479  
    544544tr_buildPath ( char *buf, size_t buflen, const char *first_element, ... )
    545545{
    546     struct evbuffer * evbuf = evbuffer_new( );
     546    struct evbuffer * evbuf;
    547547    const char * element = first_element;
    548548    va_list vl;
     549
     550    evbuf = evbuffer_new( );
    549551    va_start( vl, first_element );
     552
    550553    while( element ) {
    551554        if( EVBUFFER_LENGTH(evbuf) )
     
    558561    else
    559562        *buf = '\0';
     563
     564    va_end( vl );
    560565    evbuffer_free( evbuf );
    561566}
     
    672677    buf = evbuffer_new( );
    673678    va_start( ap, fmt );
     679
    674680    if( evbuffer_add_vprintf( buf, fmt, ap ) != -1 )
    675681        ret = tr_strdup( (char*)EVBUFFER_DATA( buf ) );
     682
     683    va_end( ap );
    676684    evbuffer_free( buf );
    677 
    678685    return ret;
    679686}
Note: See TracChangeset for help on using the changeset viewer.