In general, leftover cooked food is safe for 3-4 days, and garlic bread is no exception (if anything it'll be safe for longer). - https://cooking.stackexchange.com/questions/71390/how-long-is-bread-safe-in-the-fridge