runtime: fix memory leak in fread() failure case.

In the case where malloc() was successful but fread() was not,
the memory pointed to by fcontent was not free()'d. This patch
fixes that.