Skip to content

Commit

Permalink
Merge fix for TRQ-2374 from master.
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizabeth Chan committed Dec 4, 2013
1 parent e1ed6f1 commit b0cdac8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/Libifl/pbsD_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,10 @@ int pbs_disconnect(
pbs_disconnect_socket(sock);

if (connection[connect].ch_errtxt != (char *)NULL)
{
free(connection[connect].ch_errtxt);
connection[connect].ch_errtxt = (char *)NULL;
}

connection[connect].ch_errno = 0;
connection[connect].ch_inuse = FALSE;
Expand Down
3 changes: 3 additions & 0 deletions src/scheduler.basl/af_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,10 @@ server_disconnect(int connect)
close(connection[connect].ch_socket);

if (connection[connect].ch_errtxt != (char *)NULL)
{
free(connection[connect].ch_errtxt);
connection[connect].ch_errtxt = (char *)NULL;
}

connection[connect].ch_errno = 0;

Expand Down
3 changes: 3 additions & 0 deletions src/scheduler.tcl/pbs_sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ server_disconnect(int connect)
close(connection[connect].ch_socket);

if (connection[connect].ch_errtxt != (char *)NULL)
{
free(connection[connect].ch_errtxt);
connection[connect].ch_errtxt = (char *)NULL;
}

connection[connect].ch_errno = 0;

Expand Down

0 comments on commit b0cdac8

Please sign in to comment.