Browse Source

error.c, ft_sperror(), memory leak, free memory returned by `if_errstring()'

pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
efcd8584f1
  1. 4
      src/frontend/error.c

4
src/frontend/error.c

@ -53,7 +53,9 @@ fperror(char *mess, int code)
void
ft_sperror(int code, char *mess)
{
fprintf(cp_err, "%s: %s\n", mess, if_errstring(code));
char *errstring = if_errstring(code);
fprintf(cp_err, "%s: %s\n", mess, errstring);
tfree(errstring);
}

Loading…
Cancel
Save