Changeset 4869 for libcaca


Ignore:
Timestamp:
Sep 15, 2013, 11:35:10 PM (5 years ago)
Author:
Pascal Terjan
Message:

Don't leak fd when malloc fails (coverity)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaserver.c

    r4859 r4869  
    322322        server->clients = malloc(sizeof(struct client));
    323323        if(server->clients == NULL)
     324        {
     325            close(fd);
    324326            return;
     327        }
    325328    }
    326329    else
Note: See TracChangeset for help on using the changeset viewer.