Skip to content

Commit

Permalink
mxq_job: fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Oct 26, 2015
1 parent 6f9e118 commit a092d65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mxq_job.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ int mxq_load_job_from_group_for_server(struct mx_mysql *mysql, struct mxq_job *m
}
if(res == 1) {
memcpy(mxqjob, &jobs[0], sizeof(*mxqjob));
free(jobs);
break;
}

Expand Down

0 comments on commit a092d65

Please sign in to comment.