[parted-devel] Use free, not ped_free

Jim Meyering jim at meyering.net
Thu May 29 12:57:56 UTC 2008


I found the dichotomoy of "free" and "ped_free" to be pointless and
distracting, considering that ped_free adds nothing most of the time,
and even when DEBUG is enabled, it only adds a checking mechanism that
is nearly useless.

So I'm removing the ped_free function and converting all
existing uses to "free".
Once they were all converted, I also removed all of the
useless if-before-free tests like this:

  if (var)
    free (var);

leaving just this:

  free (var);

Here are the two patches I'll push shortly:



More information about the parted-devel mailing list