Chameleon

Chameleon Commit Details

Date:2014-01-07 08:18:17 (5 years 6 months ago)
Author:Chuck Fry
Commit:2293
Parents: 2292
Message:Fix memory leak for new_layout in main()
Changes:
M/branches/chucko/i386/modules/Keylayout/layouts/cham-mklayout.c

File differences

branches/chucko/i386/modules/Keylayout/layouts/cham-mklayout.c
363363
364364
365365
366
366
367367
368
369
370
368371
369372
370373
}
struct keyboard_layout* new_layout = create_keylayout(in);
if (new_layout)
if (new_layout) {
write_layout(new_layout, out);
free(new_layout);
new_layout = NULL;
}
fclose(out);
fclose(in);

Archive Download the corresponding diff file

Revision: 2293