Svante Signell, le jeu. 27 janv. 2022 23:07:34 +0100, a ecrit: > @@ -47,6 +53,7 @@ netfs_make_peropen (struct node *np, int flags, struct > peropen *context) > po->path = strdup (context->path); > if (! po->path) { > free(po); > + errno = ENOMEM; > return NULL; > } > }
Ah, also, here: rather than hardcoding ENOMEM, save the errno value, and restore it after calling free(po). strdup would normally only ever return ENOMEM errors, but better be safe than sorry. Samuel