diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-16 00:28:56 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-16 12:17:42 +0200 |
commit | 8390f85af4a379f4e0a9305912d6d62ce09c6fc1 (patch) | |
tree | 0eae86a15d1c43e0e4a272737f6f289789f7cca8 | |
parent | 8f14effc02e20fe562f1081b8155e7fb93b22dcf (diff) | |
download | libsigrokdecode-8390f85af4a379f4e0a9305912d6d62ce09c6fc1.tar.gz libsigrokdecode-8390f85af4a379f4e0a9305912d6d62ce09c6fc1.zip |
type_decoder.c: Drop unneeded g_free() NULL check.
-rw-r--r-- | type_decoder.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/type_decoder.c b/type_decoder.c index 2bb3616..9e0a27c 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -125,8 +125,7 @@ static void release_binary(struct srd_proto_data_binary *pdb) { if (!pdb) return; - if (pdb->data) - g_free((void *)pdb->data); + g_free((void *)pdb->data); g_free(pdb); } |