Navigation


Changeset 785:e780452c6b55 in freeDiameter for libfdproto


Ignore:
Timestamp:
Apr 3, 2012, 3:21:06 PM (12 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fix possible memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/sessions.c

    r778 r785  
    456456                        {
    457457                                ret = ENOMEM;
     458                                free(sid);
    458459                                goto out;
    459460                        } );
     
    461462                fd_list_insert_before(li, &sess->chain_h); /* hash table */
    462463        } else {
     464                free(sid);
    463465                /* it was found: was it previously destroyed? */
    464466                if ((*session)->is_destroyed == 0) {
Note: See TracChangeset for help on using the changeset viewer.