[dovecot/core] cf4bdc: lib: [ip]_free(mem) is now also guaranteed to set ...

GitHub noreply at github.com
Wed Oct 5 21:30:14 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: cf4bdceafe382cda0f3b7ff39c5327fa96a00fba
      https://github.com/dovecot/core/commit/cf4bdceafe382cda0f3b7ff39c5327fa96a00fba
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-10-06 (Thu, 06 Oct 2016)

  Changed paths:
    M src/lib/imem.h
    M src/lib/mempool.h

  Log Message:
  -----------
  lib: [ip]_free(mem) is now also guaranteed to set mem=NULL

It was already doing it, but updated the macros and comments to make it
clear that this won't change in future. Changing this would only make it
more likely that bugs occur and the performance improvements would be
close to nonexistent.


  Commit: ceace05582699dd86d6b41a20b87b1272b33352b
      https://github.com/dovecot/core/commit/ceace05582699dd86d6b41a20b87b1272b33352b
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-10-06 (Thu, 06 Oct 2016)

  Changed paths:
    M src/lib/imem.h
    M src/lib/mempool-system.c
    M src/lib/mempool.h

  Log Message:
  -----------
  lib: Simplify static checker's job for i_free() macro.


  Commit: b106236913cb4888b1996f956c9c1e9eb16d67c3
      https://github.com/dovecot/core/commit/b106236913cb4888b1996f956c9c1e9eb16d67c3
  Author: Timo Sirainen <timo.sirainen at dovecot.fi>
  Date:   2016-10-06 (Thu, 06 Oct 2016)

  Changed paths:
    M src/lib-test/test-common.c
    M src/lib/data-stack.c
    M src/lib/data-stack.h

  Log Message:
  -----------
  lib-test: Fixed assert-crash in test_exit() with --enable-static-checker

Fixes:
Panic: Missing t_pop() call


Compare: https://github.com/dovecot/core/compare/b25ad25cae4a...b106236913cb


More information about the dovecot-cvs mailing list