42 push_swap group project
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: free ptr value, not ptr ptr

gvoelkne (May 25, 2026, 1:51 PM +0200) a65d47f9 c4c46611

+2 -2
+2 -2
free_util.c
··· 6 6 /* By: gvoelkne <marvin@42.fr> +#+ +:+ +#+ */ 7 7 /* +#+#+#+#+#+ +#+ */ 8 8 /* Created: 2026/05/25 10:24:08 by gvoelkne #+# #+# */ 9 - /* Updated: 2026/05/25 10:28:59 by gvoelkne ### ########.fr */ 9 + /* Updated: 2026/05/25 13:47:41 by gvoelkne ### ########.fr */ 10 10 /* */ 11 11 /* ************************************************************************** */ 12 12 ··· 16 16 { 17 17 if (!ptr || !*ptr) 18 18 return (NULL); 19 - free(ptr); 19 + free(*ptr); 20 20 *ptr = NULL; 21 21 return (NULL); 22 22 }