Commit a5d7424a authored by Sebastian Ramacher's avatar Sebastian Ramacher

Do not leak on mode == NULL

Signed-off-by: default avatarSebastian Ramacher <sebastian@ramacher.at>
parent b3f581d9
......@@ -186,9 +186,12 @@ girara_split_path_array(const char* patharray)
FILE*
girara_file_open(const char* path, const char* mode)
{
char* fixed_path = girara_fix_path(path);
if (path == NULL || mode == NULL) {
return NULL;
}
if (fixed_path == NULL || mode == NULL) {
char* fixed_path = girara_fix_path(path);
if (fixed_path == NULL) {
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment