1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-16 15:18:58 +00:00

fixed wrong free

This commit is contained in:
caixiangyue
2019-07-26 14:14:38 +08:00
parent bc821f8c69
commit 3ff52aee8a
2 changed files with 4 additions and 6 deletions

View File

@@ -314,16 +314,13 @@ get_commit_id (SeafDBRow *row, void *data)
}
static void
publish_repo_update_event (char *repo_id, char *commit_id)
publish_repo_update_event (const char *repo_id, const char *commit_id)
{
char buf[128];
snprintf (buf, sizeof(buf), "repo-update\t%s\t%s",
repo_id, commit_id);
publish_event (seaf->mq_mgr, SEAFILE_SERVER_CHANNEL_EVENT, buf);
g_free (repo_id);
g_free (commit_id);
}
static void