Skip to content

Commit 5eb3394

Browse files
committed
Reorder xdfree(name) and removing trailing whitespace
1 parent cae6118 commit 5eb3394

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/base/ctrl_socket.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,16 +495,17 @@ void xdebug_control_socket_setup(void)
495495
);
496496

497497
if (XG_BASE(control_socket_h) == INVALID_HANDLE_VALUE) {
498-
xdfree(name);
499498
errno = WSAGetLastError();
500499
xdebug_log_ex(XLOG_CHAN_CONFIG, XLOG_WARN, "CTRL-SOCKET", "Can't create control Named Pipe (0x%x)", errno);
501500
xdfree(XG_BASE(control_socket_path));
502501
XG_BASE(control_socket_path) = NULL;
502+
503+
xdfree(name);
503504
return;
504505
}
505506

506507
xdebug_log_ex(XLOG_CHAN_CONFIG, XLOG_INFO, "CTRL-OK", "Control socket set up successfully: '%s'", name);
507-
xdfree(name);
508+
xdfree(name);
508509
}
509510

510511
void xdebug_control_socket_teardown(void)

0 commit comments

Comments
 (0)