This is an automatically generated e-mail. To reply, visit: http://reviewboard-openlmi.rhcloud.com/r/430/

src/locale/localed.c (Diff revision 1)
144
    if (cloc->VConsoleKeymap) free(cloc->VConsoleKeymap);
145
    if (cloc->VConsoleKeymapToggle) free(cloc->VConsoleKeymapToggle);
146
    if (cloc->X11Layout) free(cloc->X11Layout);
147
    if (cloc->X11Model) free(cloc->X11Model);
148
    if (cloc->X11Variant) free(cloc->X11Variant);
149
    if (cloc->X11Options) free(cloc->X11Options);
It's not necessary to check for NULL. free(NULL) is NOP. Maybe rather check if(clock), if clock isn't NULL.

- Roman


On June 3rd, 2013, 12:01 p.m. UTC, Vitezslav Crhonek wrote:

Review request for OpenLMI Developers.
By Vitezslav Crhonek.

Updated June 3, 2013, 12:01 p.m.

Repository: openlmi-providers

Description

New provider: Locale

Diffs

  • CMakeLists.txt (c5a5c7c8fd1b24f76c4953e8a3cc8257bbe58d8e)
  • README (a80a1d2624c80367ed53e06f50804ed39b3103da)
  • mof/60_LMI_Locale.mof (PRE-CREATION)
  • openlmi-providers.spec (6e75e6f8332df807be4c2c5260211fce3339db89)
  • src/CMakeLists.txt (27bd416e1545725af0975e806975ca2119b4388b)
  • src/locale/CMakeLists.txt (PRE-CREATION)
  • src/locale/LMI_LocaleProvider.c (PRE-CREATION)
  • src/locale/localed.h (PRE-CREATION)
  • src/locale/localed.c (PRE-CREATION)

View Diff