History log of /sssd/src/tools/common/sss_colondb.c
Revision Date Author Comments Expand
2dd75ea79a57615808754c0ce550786edbc17d69 24-Feb-2016 Petr Cech <pcech@redhat.com>

TOOLS: Fix memory leak after getline() failed This patch fixes buffer freeing in case if getline() failed in function sss_colondb_readline(). ssize_t getline(char **lineptr, size_t *n, FILE *stream); If *lineptr is set to NULL and *n is set 0 before the call, then getline() will allocate a buffer for storing the line. This buffer should be freed by the user program even if getline() failed. man 3 getline This patch fix buffer freeing in case if getline() failed. Resolves: https://fedorahosted.org/sssd/ticket/2764 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6977d7c84145ac69195be58b3330861b9b8a3b72 24-Feb-2016 Lukas Slebodnik <lslebodn@redhat.com>

TOOLS: Fix minor memory leak in sss_colondb_writeline The variable line was initialized to NULL. The we created temporary context tmp_ctx. We use talloc_asprintf_append to append string to line which is initially NULL and therefore new context which was not connected to tmp_ctx. man 3 talloc_string -> talloc_asprintf_append Reviewed-by: Petr Cech <pcech@redhat.com>

de1131abe5ba7aaeb59f81fc3a9cd2a71c0b52dd 14-Dec-2015 Lukas Slebodnik <lslebodn@redhat.com>

DEBUG: Add missing new lines Reviewed-by: Petr Cech <pcech@redhat.com>

a76f63544533f0404f7711a10c1a621c6045df17 20-Aug-2015 Pavel Březina <pbrezina@redhat.com>

TOOLS: add sss_colondb API To simplify import/export users and groups. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>