]> sourceware.org Git - lvm2.git/commit
config_def_check: fix memory leak
authorTony Asleson <tasleson@redhat.com>
Tue, 16 Apr 2013 08:42:03 +0000 (10:42 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Tue, 16 Apr 2013 08:45:37 +0000 (10:45 +0200)
commit2ccb9eb861c3b65ffc1aac024425e2cc10950077
treef8e483fec6cb7aed95dcbfe2d842336bcb71fbf5
parent2e0740f7ef420c7b981bc67cb606d180701b8c1d
config_def_check: fix memory leak

There is no need to strdup a key when inserting into
the hash table as the table allocates memory and copies
the string.  This was causing memory to be lost.
lib/config/config.c
This page took 0.035146 seconds and 5 git commands to generate.