fix memleak
This commit is contained in:
parent
0f89a6ba87
commit
f2fea51ba3
|
|
@ -2617,7 +2617,9 @@ int psync_debug(const char *file, const char *function, int unsigned line,
|
|||
break;
|
||||
}
|
||||
if (unlikely(!log)) {
|
||||
log = fopen(psync_debug_path(), "a+");
|
||||
char *path = psync_debug_path();
|
||||
log = fopen(path, "a+");
|
||||
free(path);
|
||||
if (!log)
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue