diff options
author | Karel Zak | 2017-11-23 15:24:59 +0100 |
---|---|---|
committer | Karel Zak | 2017-11-23 15:24:59 +0100 |
commit | d1bf0ce5faac608d62e2b8a0bcd3ef95c853a883 (patch) | |
tree | e20302b75084f45e75dec26d9f2ec2b35802c657 /libsmartcols/samples/title.c | |
parent | tests: allow to use memory checks for libsmartcols (diff) | |
download | kernel-qcow2-util-linux-d1bf0ce5faac608d62e2b8a0bcd3ef95c853a883.tar.gz kernel-qcow2-util-linux-d1bf0ce5faac608d62e2b8a0bcd3ef95c853a883.tar.xz kernel-qcow2-util-linux-d1bf0ce5faac608d62e2b8a0bcd3ef95c853a883.zip |
libsmartcols: fix mem-leaks in samples
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/samples/title.c')
-rw-r--r-- | libsmartcols/samples/title.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsmartcols/samples/title.c b/libsmartcols/samples/title.c index 2d33b563a..c25b32070 100644 --- a/libsmartcols/samples/title.c +++ b/libsmartcols/samples/title.c @@ -103,6 +103,7 @@ int main(int argc, char *argv[]) if (!sy) err_oom(); scols_table_set_symbols(tb, sy); + scols_unref_symbols(sy); scols_symbols_set_title_padding(sy, "="); scols_cell_set_data(title, "This is center title (with padding)"); |