summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26e53bc)
raw | patch | inline | side by side (parent: 26e53bc)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 17 Oct 2014 06:30:16 +0000 (08:30 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 17 Oct 2014 06:30:16 +0000 (08:30 +0200) |
src/core/data.c | patch | blob | history |
diff --git a/src/core/data.c b/src/core/data.c
index a796b21eef37a57c4cc422836f5386f5c11c14ba..557dfd6a5fb3011d276c22ccb31442edaaf59ff1 100644 (file)
--- a/src/core/data.c
+++ b/src/core/data.c
return -1;
if (regcomp(&tmp.data.re.regex, tmp.data.re.raw,
REG_EXTENDED | REG_ICASE | REG_NOSUB)) {
- free(tmp.data.re.raw);
sdb_log(SDB_LOG_ERR, "core: Failed to compile regular "
"expression '%s'", tmp.data.re.raw);
+ free(tmp.data.re.raw);
return -1;
}
if (! data) {