Free buffer in error case.
Found by scan-build. cc @pmatos.
This commit is contained in:
parent
36bb3bc21f
commit
92c1ba9a62
|
@ -1949,8 +1949,10 @@ char *rktio_system_path(rktio_t *rktio, int which)
|
|||
#else
|
||||
return append_paths(home, "racket-prefs.rktd", 1, 0);
|
||||
#endif
|
||||
} else
|
||||
} else {
|
||||
free(home);
|
||||
return strdup("/");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user