src/haptic/linux/SDL_syshaptic.c
changeset 9360 c671d8ca48a1
parent 9266 f6355bfca853
child 9619 b94b6d0bff0f
--- a/src/haptic/linux/SDL_syshaptic.c	Wed Feb 18 16:25:15 2015 -0500
+++ b/src/haptic/linux/SDL_syshaptic.c	Thu Feb 19 13:11:19 2015 -0500
@@ -288,8 +288,7 @@
     }
 
     item->fname = SDL_strdup(path);
-    if ( (item->fname == NULL) ) {
-        SDL_free(item->fname);
+    if (item->fname == NULL) {
         SDL_free(item);
         return -1;
     }