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

Comments (0)

Files changed (1)

             }
             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);
         }
     }