1. 10 Mar, 2013 1 commit
  2. 06 Mar, 2013 1 commit
  3. 02 Mar, 2013 4 commits
    • Philippe Teuwen's avatar
      make style · f07d784b
      Philippe Teuwen authored
      f07d784b
    • Ludovic Rousseau's avatar
      closedir() only if opendir() succeeds · 99963158
      Ludovic Rousseau authored
      Fix compiler warning:
      conf.c:186:3: warning: Null pointer passed as an argument to a 'nonnull' parameter
        closedir(d);
        ^        ~
      99963158
    • Philippe Teuwen's avatar
      Fix mem leak in config file parser (opendir) · d7e7abb0
      Philippe Teuwen authored
      This fixes the following leaks:
      
      ==30517== 32,808 bytes in 1 blocks are definitely lost in loss record 11 of 12
      ==30517==    at 0x4C28BED: malloc (vg_replace_malloc.c:263)
      ==30517==    by 0x50F4B2A: __alloc_dir (opendir.c:186)
      ==30517==    by 0x4E34998: conf_devices_load.constprop.1 (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==30517==    by 0x4E36350: nfc_context_new (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==30517==    by 0x4E34D98: nfc_init (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      d7e7abb0
    • Philippe Teuwen's avatar
      Fix mem leak in config file parser · 3d9ebb50
      Philippe Teuwen authored
      This fixes the following leaks:
      
      ==18690== 256 bytes in 1 blocks are definitely lost in loss record 75 of 100
      ==18690==    at 0x4C28BED: malloc (vg_replace_malloc.c:263)
      ==18690==    by 0x511613F: regcomp (regcomp.c:487)
      ==18690==    by 0x4E34313: conf_parse_file (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==18690==    by 0x4E349F5: conf_devices_load.constprop.1 (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==18690==    by 0x4E362C0: nfc_context_new (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==18690==    by 0x4E34D08: nfc_init (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==18690==
      ==18690== 32,068 (224 direct, 31,844 indirect) bytes in 1 blocks are definitely lost in loss record 98 of 100
      ==18690==    at 0x4C28BED: malloc (vg_replace_malloc.c:263)
      ==18690==    by 0x4C28D6F: realloc (vg_replace_malloc.c:632)
      ==18690==    by 0x5115DF3: re_compile_internal (regcomp.c:760)
      ==18690==    by 0x51161AB: regcomp (regcomp.c:506)
      ==18690==    by 0x4E34313: conf_parse_file (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==18690==    by 0x4E349F5: conf_devices_load.constprop.1 (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==18690==    by 0x4E362C0: nfc_context_new (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      ==18690==    by 0x4E34D08: nfc_init (in /usr/lib/x86_64-linux-gnu/libnfc.so.4.0.0)
      3d9ebb50
  4. 22 Feb, 2013 2 commits
  5. 01 Feb, 2013 1 commit
  6. 18 Jan, 2013 1 commit
  7. 09 Dec, 2012 1 commit
  8. 05 Dec, 2012 3 commits
  9. 04 Dec, 2012 2 commits
  10. 26 Nov, 2012 1 commit
    • Romuald Conty's avatar
      Improves log feature: · 9b3947b8
      Romuald Conty authored
        * Add --disable-log
        * Add a log level filter, configurable using conf file (ie. /etc/nfc/libnfc.conf) or environment var LIBNFC_LOG_LEVEL
      9b3947b8
  11. 24 Nov, 2012 1 commit
    • Romuald Conty's avatar
      Import code to load configuration from file. · 7963fdfc
      Romuald Conty authored
      WARNING: This commit do not contains a fully cleaned code:
       - Only nfc-list have been tested
       - Some -commented- code is not used ATM
       - Some printf-as-debug remain in this commit
      ... but that a bit usable so... happy hacking ;-)
      7963fdfc