aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_tex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_get_tex.c')
-rw-r--r--src/ft_get_tex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_get_tex.c b/src/ft_get_tex.c
index 5bd7a4f..65c8441 100644
--- a/src/ft_get_tex.c
+++ b/src/ft_get_tex.c
@@ -37,7 +37,10 @@ ft_get_tex_so(int fd, t_win *wlist)
return (ft_exit(5, wlist));
if (!(*words) || ft_strcmp(*words, "SO")
|| !(*(words + 1)) || (*(words + 2)))
+ {
+ /* ft_free_words(words); */
return (ft_map_error(3, wlist));
+ }
ft_memdel(wlist->clist->so_tex_path);
len = ft_strlen(*(words + 1));
if (!(wlist->clist->so_tex_path = (char*)malloc((len + 1) * sizeof(char))))