1. jjacky
  2. kalu

Commits

jjacky  committed 9250e20

PostSysUpgrades: new memory bug fixed

Basically the list of cmdlines was free-d after trigger, which would cause troubles on next call.

  • Participants
  • Parent commits b42cb64
  • Branches default

Comments (0)

Files changed (1)

File updater.c

View file
             }
             else
             {
-                cmdlines = updater->cmdline_post;
+                cmdlines = alpm_list_copy (updater->cmdline_post);
             }
         }
         
                 free (s);
             }
             
-            FREELIST (cmdlines);
+            alpm_list_free (cmdlines);
             g_string_free (string, TRUE);
         }
     }