Skip to content

Commit

Permalink
mxqsub: Fix minor memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed May 22, 2015
1 parent 73c9a2c commit 177c34c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ static int add_job(struct mx_mysql *mysql, struct mxq_job *j)
);
if (res < 0) {
mx_log_err("mx_mysql_statement_prepare(): %m");
mx_mysql_statement_close(&stmt);
return res;
}

Expand All @@ -357,6 +358,7 @@ static int add_job(struct mx_mysql *mysql, struct mxq_job *j)
res = mx_mysql_statement_execute(stmt, &num_rows);
if (res < 0) {
mx_log_err("mx_mysql_statement_execute(): %m");
mx_mysql_statement_close(&stmt);
return res;
}

Expand Down

0 comments on commit 177c34c

Please sign in to comment.