It may depend. If you bought your glasses there and your glasses are still under guarantee, the manufacturer will repair it for free. Otherwise, it is very likely that you can not get a free repairation. Just take them to the Walmart to have a try. I t is said that eyeglass temple repairation can be expensive for prescription eyeglasses, especially when they are not under warranty. So you are recommended to try to repair it by yourself. There are a number of options to consider to easily and effectively fixing eyeglass temples online. First of all, you should make clear the problem. Read more: http://www.ehow.com/way_5764945_eyeglass-temple-repair-tips.html
Generally speaking, it counts on the type of repair your glasses will need and how they are broken. If only screws tightened, they will do that for free for you. And also, if you bought your glasses in Walmart, and you go to the market to repair during the warranty period, this will be surely free. Meanwhile, if in other situation, for instance, the frame is broken and the warranty period is over, then you will spend more in repairing your loved glasses, otherwise, the worker in Walmart will advise you to buy a new frame to match your glasses. If you belong to the second situation, I think you should balance the cost between repair and get a new one, because this can help get better and new glasses.
Sorry, I haven't done this before. You could check into the walmart webstore and find the telephone number of the customer service center. You can ask them directly. This will save you a lot of time and energy. If you go to the walmart without knowing whether it helps you fix it, you may run a trip in vain. Thus, call them and ask them directly.
If you got the frames there, they are under warranty, and it broke under normal use, then they should. If the temple is broken due to misuse and needs to be replaced, then you will need to pay for a new one.