Commit be5b4c7
committed
log: guard free(NULL) in set_log_path()
free(log->path) is called before path has been set on the first
invocation, triggering a spurious WARNING from the custom FTLfree()
wrapper. Add a NULL check to avoid the noise.
Signed-off-by: darkexplosiveqwx <101737077+darkexplosiveqwx@users.noreply.github.com>1 parent 8e30813 commit be5b4c7
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments