File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ svc_exec(const char *arg1, const char *arg2)
363363 int flags = 0 ;
364364 struct pollfd fd [2 ];
365365 int s ;
366- char * buffer ;
366+ char buffer [ BUFSIZ ] ;
367367 size_t bytes ;
368368 bool prefixed = false;
369369 int slave_tty ;
@@ -426,7 +426,6 @@ svc_exec(const char *arg1, const char *arg2)
426426 /* UNREACHABLE */
427427 }
428428
429- buffer = xmalloc (sizeof (char ) * BUFSIZ );
430429 fd [0 ].fd = signal_pipe [0 ];
431430 fd [1 ].fd = master_tty ;
432431 fd [0 ].events = fd [1 ].events = POLLIN ;
@@ -480,8 +479,6 @@ svc_exec(const char *arg1, const char *arg2)
480479 }
481480 }
482481
483- free (buffer );
484-
485482 sigemptyset (& sigchldmask );
486483 sigaddset (& sigchldmask , SIGCHLD );
487484 sigprocmask (SIG_BLOCK , & sigchldmask , & oldmask );
You can’t perform that action at this time.
0 commit comments