Commits

William Giokas committed 750ea12

Fixed segfault

ipaddr was sometimes empty, causing free to not like it. Don't free it
if we don't have to.

Signed-off-by: William Giokas <1007380@gmail.com>

Comments (0)

Files changed (1)

             free(avgs);
             free(batt);
             free(temp);
-            free(ipaddr);
+            if(!ipaddr) {
+                free(ipaddr);
+            }
 
 		    avgs   = loadavg();
             batt   = getbattery(BATT_PATH);