Check return value of result and free it.

This commit is contained in:
Andreas Schneider 2008-04-30 12:40:31 +02:00
parent f2145a0e92
commit 8ffce13e0e

View File

@ -281,6 +281,11 @@ int csync_journal_insert_metadata(CSYNC *ctx) {
}
result = csync_journal_query(ctx, "DROP TABLE metadata_temp;");
if (result == NULL) {
return -1;
}
c_strlist_destroy(result);
return 0;
}