Browse Source

file-updater: Add missing dstr_free calls

Richard Stanway 9 years ago
parent
commit
15bec2a4d2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      deps/file-updater/file-updater/file-updater.c

+ 4 - 0
deps/file-updater/file-updater/file-updater.c

@@ -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)