Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jan 19, 2020 Library code

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit e08e2dd7b77f99e4bb904fc1df2395c2fe2ffbbe:

Merge branch 'fix_verify_push' of https://github.com/gwendalcr/fio (2020-01-16 15:44:44 -0700)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to d9b7596a1fad5adf7f6731d067e1513c56eabe96:

Merge branch 'master' of https://github.com/bvanassche/fio (2020-01-18 09:35:25 -0700)

----------------------------------------------------------------
Bart Van Assche (8):
stat: Remove two superfluous casts
stat: Remove more superfluous casts
stat: Remove several superfluous if-tests
stat: Fix a memory leak in add_ddir_status_json()
stat: Fix another memory leak in add_ddir_status_json() lib/memcpy: Suppress a Coverity leak report for setup_tests()
pmemblk: Fix a memory leak
client: Fix memory leaks in handle_job_opt()

Jens Axboe (1):
Merge branch 'master' of https://github.com/bvanassche/fio

 client.c          |  4 ++++
 engines/pmemblk.c |  2 ++
 lib/memcpy.c      |  3 +++
 stat.c            | 43 ++++++++++++++++++++++---------------------
 4 files changed, 31 insertions(+), 21 deletions(-)

---

Diff of recent changes:

client.c +4 -0
index 55d89a0e..93bca5df 100644
@@ -1157,6 +1157,10 @@ static void handle_job_opt(struct fio_client *client, struct fio_net_cmd *cmd)
 		struct flist_head *opt_list = &client->opt_lists[pdu->groupid];
 
 		flist_add_tail(&p->list, opt_list);
+	} else {
+		free(p->value);
+		free(p->name);
+		free(p);
 	}
 }
 
engines/pmemblk.c +2 -0
index 45f6fb65..730f4d77 100644
@@ -226,6 +226,8 @@ static fio_pmemblk_file_t pmb_open(const char *pathspec, int flags)
 
 	pthread_mutex_unlock(&CacheLock);
 
+	free(path);
+
 	return pmb;
 
 error:
lib/memcpy.c +3 -0
index cf8572e2..a5521343 100644
@@ -201,6 +201,9 @@ static int setup_tests(void)
 	void *src, *dst;
 	int i;
 
+	if (!tests[0].name)
+		return 0;
+
 	src = malloc(BUF_SIZE);
 	dst = malloc(BUF_SIZE);
 	if (!src || !dst) {
stat.c +22 -21

104 lines not on this page · raw message