Changeset 2674 for neercs


Ignore:
Timestamp:
Aug 6, 2008, 10:45:49 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Fix a fd leak when connection to the socket fails
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/attach.c

    r2614 r2674  
    125125    {
    126126        fprintf(stderr, "Failed to connect to %s: %s\n", screen_list->socket_path[socktype], strerror(errno));
     127        close(sock);
    127128        return NULL;
    128129    }
Note: See TracChangeset for help on using the changeset viewer.