diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-21 19:33:11 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-21 19:33:11 -0800 |
commit | 5fe7c065dc6cd7c3e9afd9ce5fade31ff7d7b198 (patch) | |
tree | 5e761ee733f99449ba1d0a069d08751babc2544c /parser.cpp | |
parent | e074ad48076f252764c4d17e21a1b17bc86a6dec (diff) |
Squash a bunch of leaks
Diffstat (limited to 'parser.cpp')
-rw-r--r-- | parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1486,25 +1486,25 @@ void parser_t::parse_job_argument_list( process_t *p, case TOK_REDIRECT_APPEND: new_io->io_mode = IO_FILE; new_io->param2.flags = O_CREAT | O_APPEND | O_WRONLY; - new_io->param1.filename = wcsdup(target.c_str()); // PCA LEAKS! + new_io->filename = target; break; case TOK_REDIRECT_OUT: new_io->io_mode = IO_FILE; new_io->param2.flags = O_CREAT | O_WRONLY | O_TRUNC; - new_io->param1.filename = wcsdup(target.c_str()); // PCA LEAKS! + new_io->filename = target; break; case TOK_REDIRECT_NOCLOB: new_io->io_mode = IO_FILE; new_io->param2.flags = O_CREAT | O_EXCL | O_WRONLY; - new_io->param1.filename = wcsdup(target.c_str()); // PCA LEAKS! + new_io->filename = target; break; case TOK_REDIRECT_IN: new_io->io_mode = IO_FILE; new_io->param2.flags = O_RDONLY; - new_io->param1.filename = wcsdup(target.c_str()); // PCA LEAKS! + new_io->filename = target; break; case TOK_REDIRECT_FD: |