Skip to content

Commit

Permalink
Merge pull request #578 from biralavor/576-fix-leak-at-check_question…
Browse files Browse the repository at this point in the history
…_mark_for_heredoc

fix leak at check_question_mark_for_heredoc
  • Loading branch information
biralavor authored Oct 11, 2024
2 parents e4113f9 + ba1bf9f commit f4aa87e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/02_parser/heredoc_expansions.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: umeneses <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/09 20:54:18 by umeneses #+# #+# */
/* Updated: 2024/10/10 23:10:07 by umeneses ### ########.fr */
/* Updated: 2024/10/11 02:42:26 by umeneses ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -73,5 +73,6 @@ int check_question_mark_for_heredoc(int idx, int fd)
write(fd, &exit_status[idx_exit_status], 1);
idx_exit_status++;
}
free(exit_status);
return (idx + 2);
}

0 comments on commit f4aa87e

Please sign in to comment.