diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-12-07 15:36:45 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-12-07 15:36:45 +0100 |
commit | 3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60 (patch) | |
tree | 3a65ec384f731b5e5621494f21bb2417986639f1 | |
parent | gnu c compiler compatible (diff) | |
download | 42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.tar.gz 42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.tar.bz2 42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.tar.xz 42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.tar.zst 42-minishell-3feb8a2f8b82a35df1f4c7e6f643bf8eaabb6f60.zip |
WIP
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | TAGS | 916 | ||||
-rw-r--r-- | src/c_ctrls.c | 2 | ||||
-rw-r--r-- | src/c_init.c | 18 | ||||
-rw-r--r-- | src/c_utils.c | 3 | ||||
-rw-r--r-- | src/c_utils.h | 2 | ||||
-rw-r--r-- | valgrind-out.txt | 663 |
7 files changed, 1595 insertions, 11 deletions
@@ -122,7 +122,7 @@ ifeq (${OS}, FreeBSD) CC = cc endif ifeq (${OS}, Linux) -CC = gcc +CC = clang endif ifeq (${OS}, Darwin) CC = cc @@ -0,0 +1,916 @@ + +src/b_alias.c,154 +static unsigned char b_print_arg_next(29,1174 +static unsigned char b_print_arg(60,1774 +unsigned char b_alias(76,2075 +void b_alias_mute(104,2487 + +src/b_alias.h,26 +# define B_ALIAS_H14,910 + +src/b_alias_print.c,183 +static char **b_alloc_buff(b_alloc_buff24,1055 +static void b_fill_buff(46,1471 +static void b_sort_buff(59,1665 +static void b_print_buff(83,2104 +void b_print_alias_list(95,2237 + +src/b_alias_print.h,32 +# define B_ALIAS_PRINT_H14,916 + +src/b_alias_register.c,63 +static void b_cpy_alias(24,1056 +void b_register_arg(47,1649 + +src/b_alias_register.h,35 +# define B_ALIAS_REGISTER_H14,919 + +src/b_builtins.h,29 +# define B_BUILTINS_H14,913 + +src/b_cd.c,136 +static void b_set_oldpwd(30,1191 +static void b_fill_repath(52,1598 +static void b_upgrade_pwd(81,2186 +unsigned char b_cd(109,2945 + +src/b_cd.h,23 +# define B_CD_H14,907 + +src/b_echo.c,67 +static void b_print_content(20,995 +unsigned char b_echo(31,1137 + +src/b_echo.h,25 +# define B_ECHO_H14,909 + +src/b_env.c,28 +unsigned char b_env(18,955 + +src/b_env.h,24 +# define B_ENV_H14,908 + +src/b_exit.c,30 +unsigned char b_exit(23,1059 + +src/b_exit.h,25 +# define B_EXIT_H14,909 + +src/b_export.c,186 +t_bool check_valid_identifier(27,1146 +t_bool check_equals(39,1323 +void b_add_to_env_from_globals(55,1498 +static void b_classic_export(82,2086 +unsigned char b_export(103,2470 + +src/b_export.h,27 +# define B_EXPORT_H14,911 + +src/b_export_mute.c,81 +static void b_classic_export_mute(27,1151 +unsigned char b_export_mute(48,1572 + +src/b_export_mute.h,32 +# define B_EXPORT_MUTE_H14,916 + +src/b_export_next.c,149 +static char **b_get_var(b_get_var24,1086 +static long b_is_it_in_env(45,1638 +static void b_add_to_env(65,1975 +void b_export_with_equals(89,2456 + +src/b_export_next.h,109 +# define B_EXPORT_NEXT_H14,916 +enum e_var18,966 + B_VAR_NAME,20,979 + B_VAR_VAL,21,992 + B_VAR_NULL22,1004 + +src/b_h.c,210 +static unsigned long b_get_total_hist(22,1038 +static unsigned int b_print_prev_history(48,1397 +static void b_print_history(77,1950 +static t_bool b_check_numeric(102,2472 +unsigned char b_h(118,2673 + +src/b_h.h,22 +# define B_H_H14,906 + +src/b_pwd.c,29 +unsigned char b_pwd(22,1039 + +src/b_pwd.h,24 +# define B_PWD_H14,908 + +src/b_sqb.c,115 +static unsigned char b_get_sqb_id(24,1091 +static unsigned char b_eval_sqb(46,1490 +unsigned char b_sqb(72,2192 + +src/b_sqb_err.c,207 +static unsigned char b_single_op(19,976 +static unsigned char b_expect_arg(29,1172 +static unsigned char b_double_op(39,1368 +static unsigned char b_bad_nbr(49,1564 +unsigned char b_sqb_err_check(78,2140 + +src/b_sqb_err.h,28 +# define B_SQB_ERR_H14,912 + +src/b_sqb_file.c,168 +static t_bool b_file_tests(21,1019 +unsigned char b_sqb_file_tests(51,1954 +static t_bool b_sqb_file_comp_tests(68,2291 +unsigned char b_sqb_double_file_tests(81,2572 + +src/b_sqb_file.h,29 +# define B_SQB_FILE_H14,913 + +src/b_sqb.h,27 +# define FT_B_SQB_H14,911 + +src/b_sqb_nbr.c,71 +static t_bool b_sqb_nbr_tests(17,935 +unsigned char b_sqb_nbr(34,1362 + +src/b_sqb_nbr.h,28 +# define B_SQB_NBR_H14,912 + +src/b_sqb_str.c,70 +static t_bool b_sqb_str_comp(17,935 +unsigned char b_sqb_str(30,1239 + +src/b_sqb_str.h,28 +# define B_SQB_STR_H14,912 + +src/b_type.c,214 +static char b_absolute_path_exists(30,1175 +static void b_type_get_path(48,1408 +static unsigned char b_check_nonbuilt(62,1680 +static unsigned char b_check_builtins(80,2033 +unsigned char b_type(100,2438 + +src/b_type.h,25 +# define B_TYPE_H14,909 + +src/b_unset.c,155 +static t_bool check_valid_identifier(21,1017 +static void b_realloc_env(47,1313 +static t_bool b_removed_from_env(75,1825 +unsigned char b_unset(96,2192 + +src/b_unset.h,26 +# define B_UNSET_H14,910 + +src/c_ctrls.c,147 +t_msh *c_get_msh(c_get_msh22,1035 +short c_ctrl_l(33,1150 +char *c_ctrl_c(c_ctrl_c41,1323 +void c_signal_int(50,1485 +void c_signal_ign(63,1689 + +src/c_ctrls.h,26 +# define C_CTRLS_H14,910 + +src/c_init.c,204 + c_set_term_raw(37,1334 + c_add_char(61,1798 + c_read_cap(75,2092 +char *ft_strrbavchr(ft_strrbavchr109,3095 +char *c_set_ptr(c_set_ptr123,3283 + *c_process_key(c_process_key163,4230 + c_gnl(205,5292 + +src/c_init.h,702 +# define C_INIT_H14,909 +# define UP_K 22,1019 +# define DOWN_K 23,1043 +# define RIGHT_K 24,1068 +# define LEFT_K 25,1094 +# define HOME_K 26,1120 +# define END_K 27,1145 +# define DEL_K 28,1169 +# define RET_K 29,1189 +# define CTRL_A 31,1210 +# define CTRL_B 32,1231 +# define CTRL_C 33,1252 +# define CTRL_D 34,1273 +# define CTRL_E 35,1294 +# define CTRL_F 36,1315 +# define CTRL_L 37,1336 +# define CTRL_N 38,1357 +# define CTRL_P 39,1378 +typedef struct s_caps41,1400 + struct termios tios;43,1425 + struct winsize ws;44,1447 + unsigned int cpos;45,1467 + unsigned int lpos;46,1487 + unsigned int nlines;47,1507 + unsigned short psx;48,1529 + unsigned short plen;49,1550 +} t_caps;50,1572 + +src/c_input.c,95 + c_init_line(27,1122 + c_get_win_size(48,1420 + c_get_line_num(60,1622 + c_back_slash(83,2061 + +src/c_input.h,26 +# define C_INPUT_H14,910 + +src/c_keys.c,84 + c_home_key(22,1020 + c_end_key(49,1503 + c_key_right(78,2094 + c_key_left(97,2494 + +src/c_keys.h,25 +# define C_KEYS_H14,909 + +src/c_keys_next.c,28 +void c_key_up_down(21,1013 + +src/c_keys_next.h,30 +# define C_KEYS_NEXT_H14,914 + +src/c_utils.c,153 + *c_new_line(c_new_line25,1081 + *c_insert_char(c_insert_char51,1521 + *c_delchar(c_delchar78,1899 + c_redraw_next(103,2276 + c_redraw_line(133,2907 + +src/c_utils.h,26 +# define C_UTILS_H14,910 + +src/d_define.h,1716 +# define D_DEFINE_H14,911 +# define M_BUILTINS_REF 22,987 +# define M_BUILTINS_REF_LEN 23,1063 +# define M_DEFAULT_PS_ONE 29,1123 +# define M_DEFAULT_PS_TWO 30,1165 +# define M_DEFAULT_PS_THR 31,1196 +# define M_DEFAULT_PS_FOU 32,1227 +# define M_PROGNAME 38,1292 +# define M_MSH_VERSION 39,1325 +# define M_OPT_COMMAND 45,1387 +# define M_OPT_INTERACT 46,1415 +# define M_RET_VAR 52,1474 +# define M_ARGC_VAR 53,1498 +# define M_MINISHELLRC 59,1554 +# define M_DEFAULT_HISTFILE 60,1593 +# define C_NUL 66,1673 +# define C_LF 67,1694 +# define C_HT 68,1714 +# define C_SUB 69,1734 +# define C_ESC 70,1755 +# define C_DQUOTE 71,1776 +# define C_SHARP 72,1799 +# define C_DOLLAR 73,1821 +# define C_SQUOTE 74,1844 +# define C_AMP 75,1867 +# define C_PLUS 76,1888 +# define C_SEMIC 77,1910 +# define C_EQUALS 78,1932 +# define C_BACKS 79,1955 +# define C_PIPE 80,1977 +# define C_TILDE 81,1999 +# define B_SQB_B 87,2058 +# define B_SQB_C 88,2081 +# define B_SQB_D 89,2104 +# define B_SQB_E 90,2127 +# define B_SQB_F 91,2150 +# define B_SQB_H 92,2173 +# define B_SQB_N 93,2196 +# define B_SQB_P 94,2219 +# define B_SQB_R 95,2242 +# define B_SQB_S 96,2265 +# define B_SQB_W 97,2288 +# define B_SQB_X 98,2311 +# define B_SQB_Z 99,2334 +# define B_SQB_L_MAJ 100,2357 +# define B_SQB_S_MAJ 101,2383 +# define B_SQB_NT 102,2409 +# define B_SQB_OT 103,2434 +# define B_SQB_EQUA 104,2459 +# define B_SQB_DIFF 105,2484 +# define B_SQB_EQ 106,2510 +# define B_SQB_NE 107,2535 +# define B_SQB_GT 108,2560 +# define B_SQB_GE 109,2585 +# define B_SQB_LT 110,2610 +# define B_SQB_LE 111,2635 +# define F_COMMAND_NOT_FOUND 117,2694 +# define F_NO_OPTIONS 118,2743 +# define F_TOO_MANY_ARGS 119,2789 +# define F_HOME_NOT_SET 120,2836 + +src/d_enum.h,1137 +# define D_ENUM_H14,909 +enum e_ret23,988 + M_RET_FINE,25,1003 + M_RET_ALLOC26,1016 +enum e_pipe_ends29,1033 + E_WRITE_END,31,1054 + E_READ_END32,1068 +typedef enum e_quote_mode35,1084 + Q_NONE,37,1112 + Q_SINGLE,38,1121 + Q_DOUBLE39,1132 +} t_quote_mode;40,1142 +enum e_builtins_id42,1162 + B_ID_ECHO,44,1185 + B_ID_CD,45,1197 + B_ID_PWD,46,1207 + B_ID_EXPORT,47,1218 + B_ID_UNSET,48,1232 + B_ID_ENV,49,1245 + B_ID_EXIT,50,1256 + B_ID_TYPE,51,1268 + B_ID_SQB,52,1280 + B_ID_ALIAS,53,1291 + B_ID_H,54,1304 + B_BUILTINS_COUNT55,1313 +enum e_sqb_id58,1335 + B_ID_SQB_B,60,1353 + B_ID_SQB_C,61,1366 + B_ID_SQB_D,62,1379 + B_ID_SQB_E,63,1392 + B_ID_SQB_F,64,1405 + B_ID_SQB_H,65,1418 + B_ID_SQB_N,66,1431 + B_ID_SQB_P,67,1444 + B_ID_SQB_R,68,1457 + B_ID_SQB_S,69,1470 + B_ID_SQB_W,70,1483 + B_ID_SQB_X,71,1496 + B_ID_SQB_Z,72,1509 + B_ID_SQB_L_MAJ,73,1522 + B_ID_SQB_S_MAJ,74,1539 + B_ID_SQB_NT,75,1556 + B_ID_SQB_OT,76,1570 + B_ID_SQB_EQUA,77,1584 + B_ID_SQB_DIFF,78,1600 + B_ID_SQB_EQ,79,1616 + B_ID_SQB_NE,80,1630 + B_ID_SQB_GT,81,1644 + B_ID_SQB_GE,82,1658 + B_ID_SQB_LT,83,1672 + B_ID_SQB_LE,84,1686 + B_ID_SQB_COUNT85,1700 + +src/e_builtins.c,139 +static void e_export_env_fork(29,1200 +static void e_builtin_child(41,1388 +static void e_builtin_parent(60,1831 +void e_builtin(95,2569 + +src/e_builtins.h,29 +# define E_BUILTINS_H14,913 + +src/e_externs.c,175 +static void e_extern_child(39,1355 +static void e_export_env_fork(57,1732 +static void e_fullpath_not_found(69,1914 +static void e_exec_path(83,2146 +void e_extern(111,2636 + +src/e_externs.h,28 +# define E_EXTERNS_H14,912 + +src/e_line.c,27 +void e_line_block(24,1085 + +src/e_line.h,25 +# define E_LINE_H14,909 + +src/e_pipes.c,150 +static unsigned char e_get_current_path(31,1208 +static int e_unroll_pipes(60,1781 +static void e_pipe_exec(94,2417 +void e_pipes(119,2817 + +src/e_pipes.h,26 +# define E_PIPES_H14,910 + +src/e_pipes_next.c,174 +static void e_fullpath_not_found(30,1208 +static void e_exec_child(41,1435 +void e_pipe_child(59,1830 +size_t e_get_pipes_count(87,2382 +void e_close_unused_fds(102,2585 + +src/e_pipes_next.h,31 +# define E_PIPES_NEXT_H14,915 + +src/e_redirs.c,182 +static void e_redir_minus_two(23,1057 +static void e_redir_minus_one(38,1280 +static void e_redir_plus_one(51,1485 +static void e_redir_plus_two(64,1710 +void e_dup_redirs(77,1936 + +src/e_redirs.h,27 +# define E_REDIRS_H14,911 + +src/e_unshebanged.c,89 +static char **e_get_new_argv(e_get_new_argv31,1197 +void e_extern_read_script(59,1816 + +src/e_unshebanged.h,32 +# define E_UNSHEBANGED_H14,916 + +src/f_alloc.c,75 +void f_alloc_and_destroy_msh(23,1057 +void f_alloc_and_clear_line(34,1283 + +src/f_alloc.h,26 +# define F_ALLOC_H14,910 + +src/f_chdir.c,24 +void f_fail_chd(20,994 + +src/f_chdir.h,26 +# define F_CHDIR_H14,910 + +src/f_com.c,33 +void f_command_not_found(19,977 + +src/f_com.h,24 +# define F_COM_H14,908 + +src/f_errno.c,26 +void f_dump_errno(20,994 + +src/f_errno.h,26 +# define F_ERRNO_H14,910 + +src/f_exec.c,21 +void f_exec(21,1016 + +src/f_exec.h,25 +# define F_EXEC_H14,909 + +src/f_fail.c,174 +static void f_write_fail(22,1036 +void f_fail_no_options(27,1190 +void f_fail_identifier(32,1296 +void f_fail_too_many_args(38,1473 +void f_fail_non_numeric_arg(43,1585 + +src/f_fail.h,25 +# define F_FAIL_H14,909 + +src/f_file.c,26 +void f_open_file(22,1037 + +src/f_file.h,25 +# define F_FILE_H14,909 + +src/f_parse.c,27 +void f_parse_token(16,932 + +src/f_parse.h,26 +# define F_PARSE_H14,910 + +src/f_redir.c,22 +void f_redir(22,1035 + +src/f_redir.h,26 +# define F_REDIR_H14,910 + +src/f_shlvl.c,30 +void f_shlvl_too_high(15,912 + +src/f_shlvl.h,26 +# define F_SHLVL_H14,910 + +src/m_argv.c,115 +char *m_get_prev_hist(m_get_prev_hist28,1159 +static void m_read_script(51,1680 +unsigned char m_argv(64,1940 + +src/m_argv.h,25 +# define M_ARGV_H14,909 + +src/m_comm.c,30 +unsigned char m_comm(21,1015 + +src/m_comm.h,25 +# define M_COMM_H14,909 + +src/m_funptr.c,25 +void init_buptr(22,1041 + +src/m_funptr.h,27 +# define M_FUNPTR_H14,911 + +src/m_init.c,33 +void m_init_custom_vars(26,1100 + +src/m_init.h,25 +# define M_INIT_H14,909 + +src/m_loop.c,179 +static void m_parse_and_run_line(40,1387 +void m_dump_hist(71,2059 +static void m_handle_hist(91,2424 +static void m_delete_comments(110,2839 +unsigned char m_loop(136,3397 + +src/m_loop_counter.c,180 +char *m_counter_line_backslash(m_counter_line_backslash20,997 +char *m_counter_line_pipes(m_counter_line_pipes41,1443 +char *m_counter_line_quotes(m_counter_line_quotes62,1928 + +src/m_loop_counter.h,33 +# define M_LOOP_COUNTER_H14,917 + +src/m_loop.h,25 +# define M_LOOP_H14,909 + +src/m_loop_multis.c,237 +static t_bool m_check_dquote(19,987 +static t_bool m_find_next_quote(33,1255 +static t_bool m_check_missing_quotes(61,1742 +static char *m_check_multi_quotes(m_check_multi_quotes86,2182 +char *m_check_multis(m_check_multis103,2608 + +src/m_loop_multis.h,32 +# define M_LOOP_MULTIS_H14,916 + +src/m_loop_next.c,167 +char *m_check_multi_backslash(m_check_multi_backslash22,1053 +char *m_check_multi_pipe(m_check_multi_pipe32,1285 +char *m_check_multi_and(m_check_multi_and54,1696 + +src/m_loop_next.h,30 +# define M_LOOP_NEXT_H14,914 + +src/m_minishell.c,18 +int main(25,1097 + +src/m_minishell.h,30 +# define M_MINISHELL_H14,914 + +src/m_mshrc.c,38 +unsigned char m_source_mshrc(28,1134 + +src/m_mshrc.h,26 +# define M_MSHRC_H14,910 + +src/m_prompt.c,131 +static void m_subst_prompt_rice(28,1143 +static void m_update_psx(46,1455 +size_t m_plen(62,1777 +void m_prompt_psx(86,2037 + +src/m_prompt.h,27 +# define M_PROMPT_H14,911 + +src/m_prompt_seq.c,150 +size_t m_prompt_sequences_again(25,1073 +void m_prompt_sequences_more(50,1514 +void m_prompt_sequences_next(79,2115 +void m_prompt_sequences(92,2368 + +src/m_prompt_seq.h,31 +# define M_PROMPT_SEQ_H14,915 + +src/p_args.c,228 +static void p_meet_bs(23,1069 +static t_bool p_meet_whitespace(35,1235 +static char *p_skip_whitespace(p_skip_whitespace46,1436 +static unsigned short p_count_args(57,1593 +char **p_split_args(p_split_args88,2287 + +src/p_args_escape.c,209 +static t_quote_mode p_escape_squote(19,976 +static t_quote_mode p_escape_dquote(48,1518 +static void p_escape_bs(77,2099 +static void p_escape_arg(99,2600 +void p_args_escape_chars_and_quotes(118,2961 + +src/p_args_escape.h,32 +# define P_ARGS_ESCAPE_H14,916 + +src/p_args.h,25 +# define P_ARGS_H14,909 + +src/p_args_len.c,68 +static t_bool p_meet_whitespace(20,997 +size_t p_arg_len(31,1198 + +src/p_args_len.h,29 +# define P_ARGS_LEN_H14,913 + +src/p_args_next.c,129 +static char *p_give_me_an_arg(p_give_me_an_arg24,1057 +void p_del_alloced_words(36,1308 +unsigned short p_dup_words(48,1470 + +src/p_args_next.h,30 +# define P_ARGS_NEXT_H14,914 + +src/p_lblock.c,142 +static unsigned char p_get_nextif(29,1180 +t_bool p_find_good_pipe(44,1489 +static char p_loop(68,1968 +char p_line_block(86,2281 + +src/p_lblock.h,27 +# define P_LBLOCK_H14,911 + +src/p_lblock_more.c,29 +void p_register_word(18,961 + +src/p_lblock_more.h,32 +# define P_LBLOCK_MORE_H14,916 + +src/p_lblock_next.c,282 +static char **p_alloc_rewords(p_alloc_rewords32,1233 +static char **p_add_to_variables_and_delete(p_add_to_variables_and_delete44,1467 +static void p_add_to_env_fork(76,2044 +static char *p_set_ptr(p_set_ptr89,2265 +char **p_check_args_equals(p_check_args_equals101,2522 + +src/p_lblock_next.h,32 +# define P_LBLOCK_NEXT_H14,916 + +src/p_line.c,70 +static t_bool p_check_whitespaces_only(20,997 +void p_line(36,1198 + +src/p_line.h,25 +# define P_LINE_H14,909 + +src/p_redirs.c,184 +static unsigned char p_append_redir(32,1233 +static size_t p_get_path(57,1685 +static int p_get_fd(87,2493 +static unsigned char p_get_redir(112,3037 +char p_redirs(143,4161 + +src/p_redirs.h,178 +# define P_REDIRS_H14,911 +enum e_fd_rdr_id18,956 + FD,20,975 + RDR21,980 +struct s_rdr_tmp24,989 + const char *word;word26,1008 + char *ptr;ptr27,1027 + char redir;28,1040 + +src/p_redirs_heredoc.c,111 +static void p_skip_tabs(20,999 +static void p_append_line(33,1236 +char *p_get_heredoc(p_get_heredoc43,1458 + +src/p_redirs_heredoc.h,35 +# define P_REDIRS_HEREDOC_H14,919 + +src/p_split.c,205 +static void p_meet_splitter(23,1060 +static void p_fill_sp(51,1822 +static void *p_del_split(p_del_split76,2369 +static char **p_get_words(p_get_words89,2547 +char **p_split_line(p_split_line118,3309 + +src/p_split.h,122 +# define P_SPLIT_H14,910 +typedef struct s_split_block23,1035 + unsigned int count;27,1124 +} t_split_block;28,1145 + +src/p_subst_alias.c,196 +static t_bool p_meet_whitespace(23,1065 +static char *p_set_ptr(p_set_ptr32,1244 +static void p_reset_used(61,1938 +static size_t p_subst_alias_return(75,2112 +size_t p_subst_alias(104,2769 + +src/p_subst_alias.h,212 +# define P_SUBST_ALIAS_H14,916 +struct s_subst_alias21,1008 + t_msh *msh;msh23,1031 + size_t locat[locat24,1044 + size_t usedcmp;25,1062 + char tmp[tmp26,1079 + char value[value27,1095 + t_bool good;28,1117 + +src/p_subst_home.c,42 +char **p_subst_home(p_subst_home25,1075 + +src/p_subst_home.h,31 +# define P_SUBST_HOME_H14,915 + +src/p_subst_vars.c,122 +static char *p_double_them_bs(p_double_them_bs22,1039 +static void p_subst_this_var(39,1294 +void p_subst_vars(62,1970 + +src/p_subst_vars.h,31 +# define P_SUBST_VARS_H14,915 + +src/s_com.c,190 +static char s_fill_com(33,1267 +static void s_com_cpy_env_fork(60,1840 +void s_com_destroy(80,2257 +static void *s_get_nword(s_get_nword97,2568 +t_com *s_com_new(s_com_new119,2999 + +src/s_com.h,24 +# define S_COM_H14,908 + +src/s_destroy.c,23 +void s_destroy(19,979 + +src/s_destroy.h,28 +# define S_DESTROY_H14,912 + +src/s_init.c,193 +static void s_init_sqb_ref_one(30,1192 +static void s_init_sqb_ref_two(58,2392 +static void s_init_sqb_ref_thr(86,3655 +static void s_null_some(92,3802 +t_msh *s_init_msh(s_init_msh103,3977 + +src/s_init.h,25 +# define S_INIT_H14,909 + +src/s_init_next.c,163 +void s_inc_shlvl(31,1203 +char **s_dupenv_del(s_dupenv_del56,1662 +static char s_cpy_path(67,1821 +char **s_dupenv(s_dupenv83,2092 +void s_set_cwd(111,2656 + +src/s_init_next.h,30 +# define S_INIT_NEXT_H14,914 + +src/s_lalias.c,140 +void s_lalias_rebind(21,1014 +void s_lalias_add_front(43,1420 +void s_lalias_clear(53,1575 +t_lalias *s_lalias_new(s_lalias_new72,1875 + +src/s_lalias.h,27 +# define S_LALIAS_H14,911 + +src/s_line.c,153 +t_line_block *s_line_last(s_line_last21,1016 +void s_line_add_back(30,1138 +void s_line_clear(45,1331 +t_line_block *s_line_new(s_line_new65,1611 + +src/s_line.h,25 +# define S_LINE_H14,909 + +src/s_lpipes.c,225 +struct s_lpipes *s_lpipes_last(s_lpipes_last28,1145 +void s_lpipes_add_back(35,1279 +void s_lpipes_clear(49,1495 +struct s_lpipes *s_lpipes_new(s_lpipes_new67,1782 +struct s_lpipes *s_split_pipes(s_split_pipes82,2100 + +src/s_lpipes.h,27 +# define S_LPIPES_H14,911 + +src/s_lpipes_split.c,54 +void s_set_tmp(26,1095 +void s_get_split_pos(39,1464 + +src/s_lpipes_split.h,33 +# define S_LPIPES_SPLIT_H14,917 + +src/s_lredir.c,207 +static t_lredir *s_lredir_last(s_lredir_last28,1133 +void s_lredir_add_back(37,1273 +void s_lredir_clear(52,1469 +static int s_get_right_fd(71,1792 +struct s_lredir *s_lredir_new(s_lredir_new93,2209 + +src/s_lredir.h,27 +# define S_LREDIR_H14,911 + +src/s_lvars.c,148 +void lvars_rebind(21,1014 +void lvars_delone(41,1398 +void lvars_add_front(68,1947 +void lvars_clear(78,2096 +t_lvars *lvars_new(lvars_new97,2385 + +src/s_lvars.h,26 +# define S_LVARS_H14,910 + +src/s_struct.h,1708 +# define S_STRUCT_H14,911 +typedef struct s_lvars25,1061 + char *name;name27,1088 + char *val;val28,1104 + struct s_lvars *next;next29,1119 +} t_lvars;30,1143 +typedef struct s_lalias32,1160 + char *name;name34,1188 + char *val;val35,1204 + size_t id;36,1219 + struct s_lalias *next;next37,1234 +} t_lalias;38,1259 +typedef struct s_lredir52,1415 + char path[path54,1443 + char *heredoc;heredoc55,1468 + int fd;56,1487 + int right_fd;57,1500 + char redir;58,1519 + struct s_lredir *next;next59,1535 +} t_lredir;60,1560 +typedef struct s_com62,1578 + char **argv;argv64,1603 + char **env_fork;env_fork65,1620 + char *bin;bin66,1641 + struct s_lredir *rdr;rdr67,1656 +} t_com;68,1680 +struct s_lpipes70,1695 + struct s_com *com;com72,1717 + struct s_lpipes *next;next73,1738 +typedef struct s_line_block84,1856 + char *lblock;lblock86,1888 + unsigned char nextif;87,1906 + struct s_line_block *next;next88,1930 +} t_line_block;89,1958 +typedef struct s_msh91,1980 + struct s_line_block *curr;curr93,2005 + struct s_com *com;com94,2033 + struct s_lpipes *pipes;pipes95,2054 + struct s_lvars *vars;vars96,2080 + struct s_lalias *alias;alias97,2104 + int argc;98,2130 + int sig;99,2145 + char **argv;argv100,2159 + char **envp;envp101,2176 + char *prev_hist;prev_hist102,2193 + char *curr_hist_ptr;curr_hist_ptr103,2214 + char ps[ps104,2239 + char env_fork_tmp[env_fork_tmp105,2260 + char sqb_ref[sqb_ref106,2294 + char *cwd;cwd107,2331 + int fd;108,2346 + unsigned char (*bu_ptr[bu_ptr109,2359 + unsigned char ret;110,2428 +} t_msh;111,2449 + +src/u_alias.c,64 +short u_get_alias_value(20,999 +void u_set_alias_value(47,1405 + +src/u_alias.h,26 +# define U_ALIAS_H14,910 + +src/u_parse.c,71 +t_quote_mode u_meet_dquote(18,956 +t_quote_mode u_meet_squote(38,1279 + +src/u_parse.h,26 +# define U_PARSE_H14,910 + +src/u_path.c,110 +static void u_get_fullpath(26,1093 +static char u_read_dir(45,1601 +unsigned char u_search_in_path(66,2002 + +src/u_path.h,108 +# define U_PATH_H14,909 +struct s_path20,974 + char *tok_path;tok_path22,992 + size_t dstsize;23,1010 + +src/u_utils.c,201 +t_bool u_is_not_escaped(21,1017 +void u_eof_fd(30,1267 +char **u_get_env_var_names(u_get_env_var_names39,1375 +unsigned long u_builtins_get_argc(63,1875 +unsigned char u_get_builtin_id(75,2027 + +src/u_utils.h,26 +# define U_UTILS_H14,910 + +src/u_vars.c,149 +static void u_get_frm_env(23,1061 +static void u_get_special_var(52,1611 +void u_get_custom_var(79,2202 +unsigned char u_get_var_value(112,2950 + +src/u_vars.h,25 +# define U_VARS_H14,909 + +src/u_vars_next.c,125 +static long u_get_env_var_line(27,1116 +static t_bool u_get_custom_var_existance(47,1446 +void u_subst_var_value(82,2105 + +src/u_vars_next.h,30 +# define U_VARS_NEXT_H14,914 + +src/tags,0 diff --git a/src/c_ctrls.c b/src/c_ctrls.c index f841705..dcb51de 100644 --- a/src/c_ctrls.c +++ b/src/c_ctrls.c @@ -34,7 +34,7 @@ short c_ctrl_l(char *line, t_caps *tcaps, t_msh *msh) { tputs(tgetstr("cl", NULL), 1, ft_putchar); m_prompt_psx(1, msh); - c_redraw_line(line, tcaps, msh); + c_redraw_line(line, tcaps); return (1); } diff --git a/src/c_init.c b/src/c_init.c index 7a1509c..358f145 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -58,7 +58,7 @@ short } static void - c_add_char(char **line, char *buf, t_caps *tcaps, t_msh *msh) + c_add_char(char **line, char *buf, t_caps *tcaps) { *line = c_insert_char(*line, buf[0], tcaps); tcaps->cpos++; @@ -68,7 +68,7 @@ static void write(STDOUT_FILENO, "\n\r", 2); return ; } - c_redraw_line(*line, tcaps, msh); + c_redraw_line(*line, tcaps); } static short @@ -166,23 +166,26 @@ static char char *ptr; if (line == NULL) - if (!(line = ft_calloc(1, sizeof(char)))) + { + ft_printf("\r\nline is NULL\r\n"); + if (!(line = calloc(1, sizeof(char)))) return (NULL); + } if (ft_isprint(buf[0])) - c_add_char(&line, buf, tcaps, msh); + c_add_char(&line, buf, tcaps); else if (((*((unsigned int *)buf)) == UP_K) || ((*((unsigned int *)buf)) == CTRL_P)) { ptr = c_set_ptr(FALSE, -1, msh); c_key_up_down(&line, tcaps, ptr); - c_redraw_line(line, tcaps, msh); + c_redraw_line(line, tcaps); } else if (((*((unsigned int *)buf)) == DOWN_K) || ((*((unsigned int *)buf)) == CTRL_N)) { ptr = c_set_ptr(FALSE, 1, msh); c_key_up_down(&line, tcaps, ptr); - c_redraw_line(line, tcaps, msh); + c_redraw_line(line, tcaps); } else if ((*((unsigned int *)buf)) == DEL_K) { @@ -192,7 +195,7 @@ static char { return (NULL); } - c_redraw_line(line, tcaps, msh); + c_redraw_line(line, tcaps); } else if ((*((unsigned int *)buf)) == CTRL_C) return (c_ctrl_c(&line, buf, msh)); @@ -224,5 +227,6 @@ short *line = c_process_key(nread, &tcaps, msh); tputs(tgetstr("ve", NULL), 1, ft_putchar); } + ft_printf("[%s]\n", *line); return (1); } diff --git a/src/c_utils.c b/src/c_utils.c index fa2eaaf..73d5a3e 100644 --- a/src/c_utils.c +++ b/src/c_utils.c @@ -35,7 +35,7 @@ char if (line != NULL) { ret = ft_strdup(line); - line[0] = '\0'; + ft_memdel((void*)&line); } tcaps->cpos = 0; tputs(tgetstr("cr", NULL), 1, ft_putchar); @@ -44,6 +44,7 @@ char { write(1, "\n", 1); } + /* ft_printf("[%s][%s]\n", ret, line); */ return (ret); } diff --git a/src/c_utils.h b/src/c_utils.h index f33c961..aad51ea 100644 --- a/src/c_utils.h +++ b/src/c_utils.h @@ -18,6 +18,6 @@ char *c_new_line(char *line, t_caps *tcaps); char *c_insert_char(char *str, char c, t_caps *tcaps); char *c_delchar(char *str, unsigned short cpos); -short c_redraw_line(char *line, t_caps *tcaps, t_msh *msh); +short c_redraw_line(char *line, t_caps *tcaps); #endif diff --git a/valgrind-out.txt b/valgrind-out.txt new file mode 100644 index 0000000..de0e6cc --- /dev/null +++ b/valgrind-out.txt @@ -0,0 +1,663 @@ +==19160== Memcheck, a memory error detector +==19160== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. +==19160== Using Valgrind-3.14.0-353a3587bb-20181007X and LibVEX; rerun with -h for copyright info +==19160== Command: ./minishell +==19160== Parent PID: 499 +==19160== +--19160-- +--19160-- Valgrind options: +--19160-- --leak-check=full +--19160-- --show-leak-kinds=all +--19160-- --track-origins=yes +--19160-- --verbose +--19160-- --log-file=valgrind-out.txt +--19160-- Contents of /proc/version: +--19160-- Linux version 4.19.0-9-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) +--19160-- +--19160-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-lzcnt-rdtscp-sse3-avx-avx2-bmi +--19160-- Page sizes: currently 4096, max supported 4096 +--19160-- Valgrind library directory: /usr/lib/x86_64-linux-gnu/valgrind +--19160-- Reading syms from /home/salad/Documents/42projects/42-minishell/minishell +--19160-- Reading syms from /usr/lib/x86_64-linux-gnu/ld-2.28.so +--19160-- Considering /usr/lib/debug/.build-id/f2/5dfd7b95be4ba386fd71080accae8c0732b711.debug .. +--19160-- .. build-id is valid +--19160-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/memcheck-amd64-linux +--19160-- Considering /usr/lib/debug/.build-id/32/2e77af97f403c3d34ff09edf60b089e72ec889.debug .. +--19160-- .. build-id is valid +--19160-- object doesn't have a dynamic symbol table +--19160-- Scheduler: using generic scheduler lock implementation. +--19160-- Reading suppressions file: /usr/lib/x86_64-linux-gnu/valgrind/default.supp +==19160== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-19160-by-salad-on-??? +==19160== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-19160-by-salad-on-??? +==19160== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-19160-by-salad-on-??? +==19160== +==19160== TO CONTROL THIS PROCESS USING vgdb (which you probably +==19160== don't want to do, unless you know exactly what you're doing, +==19160== or are doing some strange experiment): +==19160== /usr/lib/x86_64-linux-gnu/valgrind/../../bin/vgdb --pid=19160 ...command... +==19160== +==19160== TO DEBUG THIS PROCESS USING GDB: start GDB like this +==19160== /path/to/gdb ./minishell +==19160== and then give GDB the following command +==19160== target remote | /usr/lib/x86_64-linux-gnu/valgrind/../../bin/vgdb --pid=19160 +==19160== --pid is optional if only one valgrind process is running +==19160== +--19160-- REDIR: 0x401e2f0 (ld-linux-x86-64.so.2:strlen) redirected to 0x580c9ce2 (vgPlain_amd64_linux_REDIR_FOR_strlen) +--19160-- REDIR: 0x401e0d0 (ld-linux-x86-64.so.2:index) redirected to 0x580c9cfc (vgPlain_amd64_linux_REDIR_FOR_index) +--19160-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_core-amd64-linux.so +--19160-- Considering /usr/lib/debug/.build-id/34/fbc4cdfbfce1bfc3d2e522a01a050bf724c930.debug .. +--19160-- .. build-id is valid +--19160-- Reading syms from /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so +--19160-- Considering /usr/lib/debug/.build-id/ca/bb7898ea982d936cbfadd70ae831c6eb63623f.debug .. +--19160-- .. build-id is valid +==19160== WARNING: new redirection conflicts with existing -- ignoring it +--19160-- old: 0x0401e2f0 (strlen ) R-> (0000.0) 0x580c9ce2 vgPlain_amd64_linux_REDIR_FOR_strlen +--19160-- new: 0x0401e2f0 (strlen ) R-> (2007.0) 0x04838d80 strlen +--19160-- REDIR: 0x401ab10 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4839e40 (strcmp) +--19160-- REDIR: 0x401e830 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x483d860 (mempcpy) +--19160-- Reading syms from /usr/lib/x86_64-linux-gnu/libncurses.so.6.1 +--19160-- object doesn't have a symbol table +--19160-- Reading syms from /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1 +--19160-- object doesn't have a symbol table +--19160-- Reading syms from /usr/lib/x86_64-linux-gnu/libc-2.28.so +--19160-- Considering /usr/lib/debug/.build-id/18/b9a9a8c523e5cfe5b5d946d605d09242f09798.debug .. +--19160-- .. build-id is valid +--19160-- Reading syms from /usr/lib/x86_64-linux-gnu/libdl-2.28.so +--19160-- Considering /usr/lib/debug/.build-id/d3/583c742dd47aaa860c5ae0c0c5bdbcd2d54f61.debug .. +--19160-- .. build-id is valid +--19160-- REDIR: 0x4962f70 (libc.so.6:memmove) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4962160 (libc.so.6:strncpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4963250 (libc.so.6:strcasecmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4961b70 (libc.so.6:strcat) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4962190 (libc.so.6:rindex) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4964890 (libc.so.6:rawmemchr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x497d230 (libc.so.6:wmemchr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x497ccd0 (libc.so.6:wcscmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49630e0 (libc.so.6:mempcpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4962f10 (libc.so.6:bcmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4962100 (libc.so.6:strncmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4961be0 (libc.so.6:strcmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4963040 (libc.so.6:memset) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x497cca0 (libc.so.6:wcschr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49620a0 (libc.so.6:strnlen) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4961c70 (libc.so.6:strcspn) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49632a0 (libc.so.6:strncasecmp) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4961c40 (libc.so.6:strcpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49633e0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x497e4d0 (libc.so.6:wcsnlen) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49621c0 (libc.so.6:strpbrk) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4961ba0 (libc.so.6:index) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4962070 (libc.so.6:strlen) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4969280 (libc.so.6:memrchr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49632f0 (libc.so.6:strcasecmp_l) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4962ee0 (libc.so.6:memchr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x497cdb0 (libc.so.6:wcslen) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4962460 (libc.so.6:strspn) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4963220 (libc.so.6:stpncpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49631f0 (libc.so.6:stpcpy) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49648c0 (libc.so.6:strchrnul) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4963340 (libc.so.6:strncasecmp_l) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49620d0 (libc.so.6:strncat) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x49e1950 (libc.so.6:__memcpy_chk) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4962e20 (libc.so.6:strstr) redirected to 0x482b1b0 (_vgnU_ifunc_wrapper) +--19160-- REDIR: 0x4a35fa0 (libc.so.6:__strrchr_avx2) redirected to 0x4838790 (rindex) +--19160-- REDIR: 0x495e350 (libc.so.6:malloc) redirected to 0x4835710 (malloc) +--19160-- REDIR: 0x495e9a0 (libc.so.6:free) redirected to 0x4836940 (free) +==19166== +==19166== HEAP SUMMARY: +==19166== in use at exit: 0 bytes in 0 blocks +==19166== total heap usage: 1,997 allocs, 1,997 frees, 617,369 bytes allocated +==19166== +==19166== All heap blocks were freed -- no leaks are possible +==19166== +==19166== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +==19166== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +--19160-- REDIR: 0x4a36170 (libc.so.6:__strlen_avx2) redirected to 0x4838c60 (strlen) +--19160-- REDIR: 0x4a31af0 (libc.so.6:__strncmp_avx2) redirected to 0x4839410 (strncmp) +--19160-- REDIR: 0x495f120 (libc.so.6:calloc) redirected to 0x4837ab0 (calloc) +--19160-- REDIR: 0x4a35db0 (libc.so.6:__strchrnul_avx2) redirected to 0x483d390 (strchrnul) +--19160-- REDIR: 0x4a36300 (libc.so.6:__strnlen_avx2) redirected to 0x4838c00 (strnlen) +--19160-- REDIR: 0x4a35b80 (libc.so.6:__strchr_avx2) redirected to 0x4838910 (index) +--19160-- REDIR: 0x4a366b0 (libc.so.6:__memcpy_avx_unaligned_erms) redirected to 0x483c8a0 (memmove) +--19160-- REDIR: 0x4977100 (libc.so.6:__strcpy_sse2_unaligned) redirected to 0x4838db0 (strcpy) +--19160-- REDIR: 0x4a316b0 (libc.so.6:__strcmp_avx2) redirected to 0x4839d00 (strcmp) +--19160-- REDIR: 0x4962980 (libc.so.6:__GI_strstr) redirected to 0x483dac0 (__strstr_sse2) +--19160-- REDIR: 0x4a366a0 (libc.so.6:__memcpy_chk_avx_unaligned_erms) redirected to 0x483d950 (__memcpy_chk) +--19160-- REDIR: 0x495ebf0 (libc.so.6:realloc) redirected to 0x4837d00 (realloc) +--19160-- REDIR: 0x4977730 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x48392e0 (__strncpy_sse2_unaligned) +==19167== +==19167== HEAP SUMMARY: +==19167== in use at exit: 17,324 bytes in 20 blocks +==19167== total heap usage: 2,335 allocs, 2,315 frees, 812,938 bytes allocated +==19167== +==19167== Searching for pointers to 20 not-freed blocks +==19167== Checked 1,172,536 bytes +==19167== +==19167== 4 bytes in 1 blocks are still reachable in loss record 1 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x406515: c_insert_char (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4057CC: c_add_char (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4055B3: c_process_key (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4054C0: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 12 bytes in 1 blocks are still reachable in loss record 2 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x4961DB9: strdup (strdup.c:42) +==19167== by 0x48BCA05: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BCCD6: _nc_first_db (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A61: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 12 bytes in 1 blocks are still reachable in loss record 3 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x4961DB9: strdup (strdup.c:42) +==19167== by 0x48BFB73: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 14 bytes in 1 blocks are still reachable in loss record 4 of 20 +==19167== at 0x4837D7B: realloc (vg_replace_malloc.c:826) +==19167== by 0x48BD212: _nc_doalloc (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C1999: tparm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6E94: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C710F: _nc_trim_sgr0 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0244: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 24 bytes in 1 blocks are still reachable in loss record 5 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48BD594: _nc_home_terminfo (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BCCC0: _nc_first_db (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A61: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 47 bytes in 1 blocks are still reachable in loss record 6 of 20 +==19167== at 0x4837D7B: realloc (vg_replace_malloc.c:826) +==19167== by 0x48BD212: _nc_doalloc (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C60E3: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 47 bytes in 1 blocks are still reachable in loss record 7 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48BB36D: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB3F: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 48 bytes in 1 blocks are still reachable in loss record 8 of 20 +==19167== at 0x4837B65: calloc (vg_replace_malloc.c:752) +==19167== by 0x48BCDDB: _nc_first_db (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A61: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 48 bytes in 1 blocks are still reachable in loss record 9 of 20 +==19167== at 0x4837B65: calloc (vg_replace_malloc.c:752) +==19167== by 0x48C6431: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 48 bytes in 1 blocks are still reachable in loss record 10 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48BB4A9: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB3F: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 51 bytes in 1 blocks are still reachable in loss record 11 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48C6482: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 78 bytes in 1 blocks are still reachable in loss record 12 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48BB3E0: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB3F: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 83 bytes in 1 blocks are still reachable in loss record 13 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48C125E: _nc_tparm_analyze (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C14DF: tparm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6E94: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C710F: _nc_trim_sgr0 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0244: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 93 bytes in 1 blocks are still reachable in loss record 14 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48BCD43: _nc_first_db (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A61: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 156 bytes in 1 blocks are still reachable in loss record 15 of 20 +==19167== at 0x4837D7B: realloc (vg_replace_malloc.c:826) +==19167== by 0x48BD212: _nc_doalloc (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C611F: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 280 bytes in 1 blocks are still reachable in loss record 16 of 20 +==19167== at 0x4837B65: calloc (vg_replace_malloc.c:752) +==19167== by 0x48BFAE0: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 1,655 bytes in 1 blocks are still reachable in loss record 17 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48C5944: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 3,336 bytes in 1 blocks are still reachable in loss record 18 of 20 +==19167== at 0x4837D7B: realloc (vg_replace_malloc.c:826) +==19167== by 0x48BD212: _nc_doalloc (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C613D: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 3,336 bytes in 1 blocks are still reachable in loss record 19 of 20 +==19167== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19167== by 0x48BB390: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BFB3F: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== 7,952 bytes in 1 blocks are still reachable in loss record 20 of 20 +==19167== at 0x4837B65: calloc (vg_replace_malloc.c:752) +==19167== by 0x48BC1A7: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48BC926: _nc_find_type_entry (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x48C09D8: tgetstr_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19167== by 0x404F92: c_set_term_raw (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405A7A: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19167== +==19167== LEAK SUMMARY: +==19167== definitely lost: 0 bytes in 0 blocks +==19167== indirectly lost: 0 bytes in 0 blocks +==19167== possibly lost: 0 bytes in 0 blocks +==19167== still reachable: 17,324 bytes in 20 blocks +==19167== suppressed: 0 bytes in 0 blocks +==19167== +==19167== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +==19167== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +==19160== +==19160== HEAP SUMMARY: +==19160== in use at exit: 17,324 bytes in 20 blocks +==19160== total heap usage: 2,403 allocs, 2,383 frees, 814,148 bytes allocated +==19160== +==19160== Searching for pointers to 20 not-freed blocks +==19160== Checked 1,172,520 bytes +==19160== +==19160== 4 bytes in 1 blocks are still reachable in loss record 1 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x406515: c_insert_char (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4057CC: c_add_char (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4055B3: c_process_key (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4054C0: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 12 bytes in 1 blocks are still reachable in loss record 2 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x4961DB9: strdup (strdup.c:42) +==19160== by 0x48BCA05: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BCCD6: _nc_first_db (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A61: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 12 bytes in 1 blocks are still reachable in loss record 3 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x4961DB9: strdup (strdup.c:42) +==19160== by 0x48BFB73: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 14 bytes in 1 blocks are still reachable in loss record 4 of 20 +==19160== at 0x4837D7B: realloc (vg_replace_malloc.c:826) +==19160== by 0x48BD212: _nc_doalloc (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C1999: tparm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6E94: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C710F: _nc_trim_sgr0 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0244: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 24 bytes in 1 blocks are still reachable in loss record 5 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48BD594: _nc_home_terminfo (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BCCC0: _nc_first_db (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A61: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 47 bytes in 1 blocks are still reachable in loss record 6 of 20 +==19160== at 0x4837D7B: realloc (vg_replace_malloc.c:826) +==19160== by 0x48BD212: _nc_doalloc (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C60E3: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 47 bytes in 1 blocks are still reachable in loss record 7 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48BB36D: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB3F: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 48 bytes in 1 blocks are still reachable in loss record 8 of 20 +==19160== at 0x4837B65: calloc (vg_replace_malloc.c:752) +==19160== by 0x48BCDDB: _nc_first_db (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A61: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 48 bytes in 1 blocks are still reachable in loss record 9 of 20 +==19160== at 0x4837B65: calloc (vg_replace_malloc.c:752) +==19160== by 0x48C6431: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 48 bytes in 1 blocks are still reachable in loss record 10 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48BB4A9: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB3F: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 51 bytes in 1 blocks are still reachable in loss record 11 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48C6482: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 78 bytes in 1 blocks are still reachable in loss record 12 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48BB3E0: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB3F: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 83 bytes in 1 blocks are still reachable in loss record 13 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48C125E: _nc_tparm_analyze (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C14DF: tparm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6E94: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C710F: _nc_trim_sgr0 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0244: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 93 bytes in 1 blocks are still reachable in loss record 14 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48BCD43: _nc_first_db (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A61: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 156 bytes in 1 blocks are still reachable in loss record 15 of 20 +==19160== at 0x4837D7B: realloc (vg_replace_malloc.c:826) +==19160== by 0x48BD212: _nc_doalloc (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C611F: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 280 bytes in 1 blocks are still reachable in loss record 16 of 20 +==19160== at 0x4837B65: calloc (vg_replace_malloc.c:752) +==19160== by 0x48BFAE0: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 1,655 bytes in 1 blocks are still reachable in loss record 17 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48C5944: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 3,336 bytes in 1 blocks are still reachable in loss record 18 of 20 +==19160== at 0x4837D7B: realloc (vg_replace_malloc.c:826) +==19160== by 0x48BD212: _nc_doalloc (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C613D: _nc_read_termtype (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C658C: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6954: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C6A8C: _nc_read_entry2 (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BF798: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB28: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 3,336 bytes in 1 blocks are still reachable in loss record 19 of 20 +==19160== at 0x483577F: malloc (vg_replace_malloc.c:299) +==19160== by 0x48BB390: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BFB3F: _nc_setupterm (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C0052: tgetent_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x405A5C: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== 7,952 bytes in 1 blocks are still reachable in loss record 20 of 20 +==19160== at 0x4837B65: calloc (vg_replace_malloc.c:752) +==19160== by 0x48BC1A7: ??? (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48BC926: _nc_find_type_entry (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x48C09D8: tgetstr_sp (in /usr/lib/x86_64-linux-gnu/libtinfo.so.6.1) +==19160== by 0x404F92: c_set_term_raw (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405A7A: c_init_line (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x405397: c_gnl (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408B06: m_loop (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x408542: m_argv (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== by 0x4099AB: main (in /home/salad/Documents/42projects/42-minishell/minishell) +==19160== +==19160== LEAK SUMMARY: +==19160== definitely lost: 0 bytes in 0 blocks +==19160== indirectly lost: 0 bytes in 0 blocks +==19160== possibly lost: 0 bytes in 0 blocks +==19160== still reachable: 17,324 bytes in 20 blocks +==19160== suppressed: 0 bytes in 0 blocks +==19160== +==19160== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) +==19160== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) |