diff options
| -rw-r--r-- | src/bplist.c | 1 | ||||
| -rw-r--r-- | src/xplist.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/bplist.c b/src/bplist.c index 5789f26..91d5578 100644 --- a/src/bplist.c +++ b/src/bplist.c | |||
| @@ -251,6 +251,7 @@ static plist_t parse_real_node(char *bnode, uint8_t size) | |||
| 251 | data->realval = *(double *) buf; | 251 | data->realval = *(double *) buf; |
| 252 | break; | 252 | break; |
| 253 | default: | 253 | default: |
| 254 | free(buf); | ||
| 254 | free(data); | 255 | free(data); |
| 255 | return NULL; | 256 | return NULL; |
| 256 | } | 257 | } |
diff --git a/src/xplist.c b/src/xplist.c index 96539a6..a889cb5 100644 --- a/src/xplist.c +++ b/src/xplist.c | |||
| @@ -120,9 +120,6 @@ static xmlDocPtr new_xml_plist(void) | |||
| 120 | char *plist = strdup(plist_base); | 120 | char *plist = strdup(plist_base); |
| 121 | xmlDocPtr plist_xml = xmlParseMemory(plist, strlen(plist)); | 121 | xmlDocPtr plist_xml = xmlParseMemory(plist, strlen(plist)); |
| 122 | 122 | ||
| 123 | if (!plist_xml) | ||
| 124 | return NULL; | ||
| 125 | |||
| 126 | free(plist); | 123 | free(plist); |
| 127 | 124 | ||
| 128 | return plist_xml; | 125 | return plist_xml; |
