| 261 | } |
| 262 | |
| 263 | struct account *find_or_create_account(struct command *cmd, |
| 264 | struct bkpr *bkpr, |
| 265 | const char *name) |
| 266 | { |
| 267 | struct account *a = find_account(bkpr, name); |
| 268 | |
| 269 | if (a) |
| 270 | return a; |
| 271 | |
| 272 | a = new_account(bkpr->accounts, name); |
| 273 | account_datastore_set(cmd, a, "must-create"); |
| 274 | return a; |
| 275 | } |
| 276 | |
| 277 | static void memleak_scan_accounts_htable(struct htable *memtable, |
| 278 | struct account_htable *ht) |
no test coverage detected