fix: fixing memory & fd leaks
This commit is contained in:
parent
5720cbd635
commit
1b83e7a47a
4 changed files with 13 additions and 9 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/17 14:20:06 by rparodi #+# #+# */
|
||||
/* Updated: 2025/03/19 19:57:45 by rparodi ### ########.fr */
|
||||
/* Updated: 2025/03/19 20:29:51 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ class Form {
|
|||
Form(std::string const name, int execute, int sign);
|
||||
Form(Form const ©);
|
||||
Form& operator=(Form const &assign);
|
||||
~Form();
|
||||
virtual ~Form();
|
||||
class GradeTooHighException : public std::exception {
|
||||
virtual const char *what() const throw() {
|
||||
return ("Error:\n> Grade is too high (have to be lower than 1)");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue