diff options
author | sueloverso <sue@mongodb.com> | 2016-10-26 12:46:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-26 12:46:21 -0400 |
commit | 4959914aae90ea8c11404b28c06a5684026c761e (patch) | |
tree | 8df5f46d33ef053f1d64cbf4594fbe5709482af4 /src | |
parent | 4a61b73ae13d53848c7773075a9e7d5e1386389b (diff) | |
download | mongo-4959914aae90ea8c11404b28c06a5684026c761e.tar.gz |
WT-2968 Fix Jenkins failures from merge. (#3108)
* WT-2968 Reduce number of files.
* Free backup file names.
* Don't need to clear the pointer.
Diffstat (limited to 'src')
-rw-r--r-- | src/cursor/cur_backup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cursor/cur_backup.c b/src/cursor/cur_backup.c index e846728dc87..3585082644f 100644 --- a/src/cursor/cur_backup.c +++ b/src/cursor/cur_backup.c @@ -314,6 +314,7 @@ __backup_stop(WT_SESSION_IMPL *session, WT_CURSOR_BACKUP *cb) { WT_CONNECTION_IMPL *conn; WT_DECL_RET; + int i; conn = S2C(session); @@ -321,8 +322,11 @@ __backup_stop(WT_SESSION_IMPL *session, WT_CURSOR_BACKUP *cb) __wt_writelock(session, conn->hot_backup_lock); conn->hot_backup_list = NULL; __wt_writeunlock(session, conn->hot_backup_lock); - if (cb->list != NULL) + if (cb->list != NULL) { + for (i = 0; cb->list[i] != NULL; ++i) + __wt_free(session, cb->list[i]); __wt_free(session, cb->list); + } /* Remove any backup specific file. */ WT_TRET(__wt_backup_file_remove(session)); |