
17 Jun
2014
17 Jun
'14
9:12 a.m.
On 06/16/14 18:00, Pavel Hrdina wrote:
On 16.6.2014 17:21, Peter Krempa wrote:
s/leasehelper/leaseshelper/ in subject
When copying entries from the old lease file into the new array the old code would copy the pointer of the json object into the second array without removing it from the first. Afterwards when both arrays were freed this might lead to a crash due to access of already freed memory.
Refactor the code to use the new array item stealing helper added to the json code so that the entry resides just in one array. --- src/network/leaseshelper.c | 79 +++++++++++++++++++++++++--------------------- 1 file changed, 43 insertions(+), 36 deletions(-)
ACK with changes
Thanks, I've fixed the nits and pushed the series.