journal: fix minor memory leak

This commit is contained in:
Lennart Poettering 2013-11-08 13:53:25 +01:00
parent 6fd4d02098
commit baabc09191

View file

@ -1276,7 +1276,7 @@ static void check_network(sd_journal *j, int fd) {
static bool file_has_type_prefix(const char *prefix, const char *filename) {
const char *full, *tilded, *atted;
full = strappend(prefix, ".journal");
full = strappenda(prefix, ".journal");
tilded = strappenda(full, "~");
atted = strappenda(prefix, "@");