Skip to content

Commit

Permalink
lib/cyrusdb_sql:myopen() — memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov committed Aug 19, 2023
1 parent bb6a880 commit b76440c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cyrusdb_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,12 @@ static int myopen(const char *fname, int flags, struct dbengine **ret, struct tx
"command=<%s>",
cmd);
dbengine->sql_close(conn);
free(table);
return CYRUSDB_INTERNAL;
}
}
else {
free(table);
return CYRUSDB_NOTFOUND;
}
}
Expand Down

0 comments on commit b76440c

Please sign in to comment.