file-updater: Add missing dstr_free calls

上级 42305f1c
......@@ -195,6 +195,8 @@ static bool init_update(struct update_info *info)
info->header = curl_slist_append(info->header,
if_none_match.array);
dstr_free(&if_none_match);
}
obs_data_release(metadata);
......@@ -401,6 +403,8 @@ static void update_save_metadata(struct update_info *info)
obs_data_set_string(data, "etag", info->etag_remote);
obs_data_save_json(data, path.array);
obs_data_release(data);
dstr_free(&path);
}
static void update_remote_version(struct update_info *info, int cur_version)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册