Always copy macro source when expanding it
authorMichael Schroeder <mls@suse.de>
Wed, 18 May 2011 06:04:40 +0000 (09:04 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 18 May 2011 06:10:11 +0000 (09:10 +0300)
commitf4c79584d01c6394544c86c122d2f32f77a1d02d
tree814c475c9455360da8f4dcbdf7725d5aa03bc4a1
parent4f3aa7327083005ebc4fce90e517fc57cce5af3d
Always copy macro source when expanding it
- A macro can undefine itself, and unless we grab a copy of it we'll
  end up accessing already freed memory. Fixes a regression from
  commit ebc4ceaaeb8bb59019f4635471b28eb5f3eaaaa6 which assumed
  a copy is not always needed.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
rpmio/macro.c