diff options
author | Jim Meyering <meyering@redhat.com> | 2008-05-04 09:51:33 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-05-29 14:48:10 +0200 |
commit | f7fcc31e0ce072820df58ca4f8810b0f6b038b06 (patch) | |
tree | 8ad214cb8acc7a15628268c0ac60a90473caef80 /libparted/exception.c | |
parent | dddef445867696a3fb8635c4856ce764feeeca2f (diff) | |
download | parted-f7fcc31e0ce072820df58ca4f8810b0f6b038b06.tar.gz |
Use free, not ped_free.
* libparted/libparted.c (ped_free): Remove function.
[DEBUG] (_check_dodgy_pointer): Remove function.
Global substitution:
perl -pi -e 's/\bped_free\b/free/g' $(lid -knone ped_free)
Diffstat (limited to 'libparted/exception.c')
-rw-r--r-- | libparted/exception.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libparted/exception.c b/libparted/exception.c index 3980e4e..c9eba25 100644 --- a/libparted/exception.c +++ b/libparted/exception.c @@ -188,8 +188,8 @@ ped_exception_catch () { if (ped_exception) { ped_exception = 0; - if (ex->message) ped_free (ex->message); - if (ex) ped_free (ex); + if (ex->message) free (ex->message); + if (ex) free (ex); ex = NULL; } } @@ -255,7 +255,7 @@ ped_exception_throw (PedExceptionType ex_type, break; size += 10; - ped_free (ex->message); + free (ex->message); } return do_throw (); |