
Repair build_label so it returns the name#id label in one block the caller frees, with a clean memory check.
build_label("core", 7)[core#7]build_label("cache-line", -1024)[cache-line#-1024]build_label("friday-deploy", INT_MIN)[friday-deploy#-2147483648]build_label(NULL, 9)nulldangling_repair.cmallocfree<stdlib.h>declares malloc and free<stddef.h>defines size_t and NULL
Run the tests to grade your code
Repair build_label so it returns the name#id label in one block the caller frees, with a clean memory check.
build_label("core", 7)[core#7]build_label("cache-line", -1024)[cache-line#-1024]build_label("friday-deploy", INT_MIN)[friday-deploy#-2147483648]build_label(NULL, 9)nulldangling_repair.cmallocfree<stdlib.h>declares malloc and free<stddef.h>defines size_t and NULL
Run the tests to grade your code
Memory will appear here