diff options
author | Karel Zak | 2018-04-16 10:27:29 +0200 |
---|---|---|
committer | Karel Zak | 2018-04-16 10:27:29 +0200 |
commit | 6ceb17c8a758b05907a9ebc547beb293765d8ccf (patch) | |
tree | 99e4945ee8b4675f91371aa232a286143ef6bc58 | |
parent | lslocks: add info about OFD (diff) | |
download | kernel-qcow2-util-linux-6ceb17c8a758b05907a9ebc547beb293765d8ccf.tar.gz kernel-qcow2-util-linux-6ceb17c8a758b05907a9ebc547beb293765d8ccf.tar.xz kernel-qcow2-util-linux-6ceb17c8a758b05907a9ebc547beb293765d8ccf.zip |
lslocks: fix memory leak
Addresses: https://github.com/karelzak/util-linux/pull/618
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | misc-utils/lslocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c index fe15ff530..917111168 100644 --- a/misc-utils/lslocks.c +++ b/misc-utils/lslocks.c @@ -435,7 +435,7 @@ static void add_scols_line(struct libscols_table *table, struct lock *l, struct break; } - if (str && scols_line_set_data(line, i, str)) + if (str && scols_line_refer_data(line, i, str)) err(EXIT_FAILURE, _("failed to add output data")); } } |