3 ms·
Or you could simply free resource1 and resource2 even if the allocation failed. free(NULL) is defined to do nothing.
by malka 11y ago
Or you could simply free resource1 and resource2 even if the allocation failed. free(NULL) is defined to do nothing.