X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Flet_calloc.c;fp=src%2Ftypes%2Flet_calloc.c;h=8b2643102f5aa226d45b959285516e33c72d079f;hp=e14ef69c2690eb5df6e3fbeb6c769e1172fa96e6;hb=2fa436074ca9a5e87f39b696de832fa2188fcfc6;hpb=d57dd73ddbd960613cfc06bc4c9473b71d3598ef diff --git a/src/types/let_calloc.c b/src/types/let_calloc.c index e14ef69..8b26431 100644 --- a/src/types/let_calloc.c +++ b/src/types/let_calloc.c @@ -45,9 +45,7 @@ void psi_let_calloc_free(struct psi_let_calloc **alloc_ptr) *alloc_ptr = NULL; psi_num_exp_free(&alloc->nmemb); psi_num_exp_free(&alloc->size); - if (alloc->token) { - free(alloc->token); - } + psi_token_free(&alloc->token); free(alloc); } }