Repair this code
Repair build_path so it still returns the joined path and stops leaking the block it borrowed on the way.
Steps
$ build_path("/usr/local", "bin")
[/usr/local/bin]
$ build_path("/tmp/", "core.log")
[/tmp/core.log]
$ build_path("", "Makefile")
[Makefile]
$ build_path("/etc", "")
[/etc/]
$ build_path(NULL, "bin")
null
Expected files
Allowed functions
Allowed headers

Repair this code
Repair build_path so it still returns the joined path and stops leaking the block it borrowed on the way.
Steps
$ build_path("/usr/local", "bin")
[/usr/local/bin]
$ build_path("/tmp/", "core.log")
[/tmp/core.log]
$ build_path("", "Makefile")
[Makefile]
$ build_path("/etc", "")
[/etc/]
$ build_path(NULL, "bin")
null
Expected files
Allowed functions
Allowed headers

Tests
Run the tests to grade your code