mirror of
https://github.com/systemd/systemd
synced 2024-09-16 06:43:18 +00:00
shared/format-table: fix invalid free
Coverity CID#1458108.
This commit is contained in:
parent
d0e18bb4b0
commit
fe819f569a
|
@ -1763,7 +1763,7 @@ static const char *table_data_format(Table *t, TableData *d, bool avoid_uppercas
|
|||
}
|
||||
|
||||
case TABLE_MODE: {
|
||||
_cleanup_free_ char *p;
|
||||
_cleanup_free_ char *p = NULL;
|
||||
|
||||
if (d->mode == MODE_INVALID)
|
||||
return "n/a";
|
||||
|
|
Loading…
Reference in a new issue