summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-07-30 11:59:19 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-07-30 12:05:16 +0200
commit8f3f39eebd1a5423f89d2ae84c99e4a1b8fc6ec3 (patch)
treeff2368a1d2bdbc50c93d9769d63fed5388b6b31a /include
parent1bb04bd4fdbb5446a58818f04c1b8bff39b724a1 (diff)
downloadneard-8f3f39eebd1a5423f89d2ae84c99e4a1b8fc6ec3.tar.gz
neard-8f3f39eebd1a5423f89d2ae84c99e4a1b8fc6ec3.tar.bz2
neard-8f3f39eebd1a5423f89d2ae84c99e4a1b8fc6ec3.zip
handover: Fix memory leak on reallocation error
A temporay variable is used for checking the realloc() return value. Otherwise ndef->ndef is leaked when realloc fails as it is then set to NULL. With this fix, ndef->ndef is updated iff realloc() succeeds. Reported by Szymon Janc <szymon.janc@tieto.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions