Skip to content

Commit 1115570

Browse files
zoboderickr
authored andcommitted
Reuse created \\.\pipe name
1 parent e918232 commit 1115570

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/base/ctrl_socket.c

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

497-
xdfree(name);
498-
499497
if (XG_BASE(control_socket_h) == INVALID_HANDLE_VALUE) {
498+
xdfree(name);
500499
errno = WSAGetLastError();
501500
xdebug_log_ex(XLOG_CHAN_CONFIG, XLOG_WARN, "CTRL-SOCKET", "Can't create control Named Pipe (0x%x)", errno);
502501
xdfree(XG_BASE(control_socket_path));
503502
XG_BASE(control_socket_path) = NULL;
504503
return;
505504
}
506505

507-
xdebug_log_ex(XLOG_CHAN_CONFIG, XLOG_INFO, "CTRL-OK", "Control socket set up successfully: '\\\\.\\pipe\\%s'", XG_BASE(control_socket_path));
506+
xdebug_log_ex(XLOG_CHAN_CONFIG, XLOG_INFO, "CTRL-OK", "Control socket set up successfully: '%s'", name);
507+
xdfree(name);
508508
}
509509

510510
void xdebug_control_socket_teardown(void)

0 commit comments

Comments
 (0)