summaryrefslogtreecommitdiffstats
path: root/src/providers/files/files_ops.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2016-11-04 17:13:30 +0100
committerJakub Hrozek <jhrozek@redhat.com>2017-02-22 12:30:10 +0100
commit08bf6b4a281ef4308119dccbba4e86cf28b505d2 (patch)
treeb1e7805b6cceb947190ebc130617e47362edc139 /src/providers/files/files_ops.c
parentd694d4fdcc81f24c2f9e3bb5a0dbe0a52498f196 (diff)
downloadsssd-08bf6b4a281ef4308119dccbba4e86cf28b505d2.tar.gz
sssd-08bf6b4a281ef4308119dccbba4e86cf28b505d2.tar.xz
sssd-08bf6b4a281ef4308119dccbba4e86cf28b505d2.zip
sdap_extend_map: make sure memory can be freed
If there is an error after calling talloc_realloc() the caller cannot free the memory properly because neither src_map nor _map were pointing to a valid memory location. With this patch _map will always point to the current valid location so that it can always be used with talloc_free(). Reviewed-by: Petr Cech <pcech@redhat.com>
Diffstat (limited to 'src/providers/files/files_ops.c')
0 files changed, 0 insertions, 0 deletions