summaryrefslogtreecommitdiffstats
path: root/lib/cpuset.c
diff options
context:
space:
mode:
authorKarel Zak2011-02-17 11:26:36 +0100
committerKarel Zak2011-02-17 11:26:36 +0100
commit9da2972c1555f9f4c8eabdc7ba05e2f4d0a3fb19 (patch)
tree26335ecc4c590f5376a1582fc0ecf5fdf0d80436 /lib/cpuset.c
parentchsh: fix small memory leak (diff)
downloadkernel-qcow2-util-linux-9da2972c1555f9f4c8eabdc7ba05e2f4d0a3fb19.tar.gz
kernel-qcow2-util-linux-9da2972c1555f9f4c8eabdc7ba05e2f4d0a3fb19.tar.xz
kernel-qcow2-util-linux-9da2972c1555f9f4c8eabdc7ba05e2f4d0a3fb19.zip
tests: [cpuset] call free() for range
The free() before exit() is not so important, but let's keep the example code nice and consistent. Reported-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/cpuset.c')
-rw-r--r--lib/cpuset.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cpuset.c b/lib/cpuset.c
index 8cd706ce4..b8a41085b 100644
--- a/lib/cpuset.c
+++ b/lib/cpuset.c
@@ -366,6 +366,7 @@ int main(int argc, char *argv[])
printf("[%s]\n", cpulist_create(buf, buflen, set, setsize));
free(buf);
+ free(range);
cpuset_free(set);
return EXIT_SUCCESS;